We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecda83e commit 3bfc9fdCopy full SHA for 3bfc9fd
samba.sh
@@ -123,13 +123,13 @@ if [ -f "$users" ] && [ -s "$users" ]; then
123
fi
124
125
# Call the function with extracted values
126
- add_user "$config" "$username" "$uid" "$groupname" "$gid" "$password"
+ add_user "$config" "$username" "$uid" "$groupname" "$gid" "$password" || { echo "Failed to add user $username"; exit 1; }
127
128
done < "$users"
129
130
else
131
132
- add_user "$config" "$USER" "$UID" "$group" "$GID" "$PASS"
+ add_user "$config" "$USER" "$UID" "$group" "$GID" "$PASS" || { echo "Failed to add user $username"; exit 1; }
133
134
if [[ "$RW" != [Ff0]* ]]; then
135
# Set permissions for share directory if new (empty), leave untouched if otherwise
0 commit comments