Skip to content

Commit

Permalink
Fixed invalid variable dereference.
Browse files Browse the repository at this point in the history
  • Loading branch information
kilo52 committed Jan 27, 2024
1 parent 017ff63 commit cc4c743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libinit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3830,7 +3830,7 @@ function load_var_from_file() {
local init_lvl="$CURRENT_LVL_PATH";
local i;
for (( i=CURRENT_LVL_NUMBER; i>=0; --i )); do
if [ -r "{$init_lvl}/${arg_file}" ]; then
if [ -r "${init_lvl}/${arg_file}" ]; then
found=true;
# Read file content
var_value="$(cat ${init_lvl}/${arg_file})";
Expand Down

0 comments on commit cc4c743

Please sign in to comment.