diff --git a/samba.sh b/samba.sh index 8b3eb80..6d40f2c 100644 --- a/samba.sh +++ b/samba.sh @@ -129,7 +129,7 @@ if [ -f "$users" ] && [ -s "$users" ]; then else - add_user "$config" "$USER" "$UID" "$group" "$GID" "$PASS" || { echo "Failed to add user $username"; exit 1; } + add_user "$config" "$USER" "$UID" "$group" "$GID" "$PASS" || { echo "Failed to add user $USER"; exit 1; } if [[ "$RW" != [Ff0]* ]]; then # Set permissions for share directory if new (empty), leave untouched if otherwise