diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.sh b/lib/utils.sh index 61dc20c..0e33585 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -4,7 +4,7 @@ detect_user() { local possible_users=${2:-("vscode" "node" "codespace" "$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)")} if [ "${!user_variable_name}" = "auto" ] || [ "${!user_variable_name}" = "automatic" ]; then declare -g ${user_variable_name}="" - for current_user in ${possible_users[@]}; do + for current_user in "${POSSIBLE_USERS[@]}"; do if id -u "${current_user}" > /dev/null 2>&1; then declare -g ${user_variable_name}="${current_user}" break |