Skip to content

Commit

Permalink
Double quote variables to avoid globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
blt-r authored and gasinvein committed Apr 2, 2023
1 parent a648a78 commit e42aba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function export_path_vars() {
if [ -d "$abs_dir" ]; then
msg "Adding $abs_dir to $var_name"
if [ -z "${!var_name}" ]; then
export $var_name="$abs_dir"
export "$var_name"="$abs_dir"
else
export $var_name="${!var_name}:$abs_dir"
export "$var_name"="${!var_name}:$abs_dir"
fi
fi
done
Expand Down

0 comments on commit e42aba9

Please sign in to comment.