Skip to content

Commit

Permalink
bin: woops, fix gltool
Browse files Browse the repository at this point in the history
  • Loading branch information
silv3rr committed Jul 23, 2024
1 parent b40c38a commit 8a4bc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gltool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ func_adduser() {
func_deluser() {
func_check_user "$USERNAME"
func_clean_tmp
rm "$USERFILE" || { echo "ERROR: deleting userfile"; exit 1;
rm "$USERFILE" || { echo "ERROR: deleting userfile"; exit 1; }
sed "/^$USERNAME/d" "$GLDIR/etc/passwd" >> "$GLDIR/etc/passwd.tmp" || { echo "ERROR: changing /etc/passwd"; exit 1; }
if [ -s "$GLDIR/etc/passwd.tmp" ]; then
mv "$GLDIR/etc/passwd.tmp" "$GLDIR/etc/passwd" || { echo "ERROR: updating passwd file"; exit 1; }
Expand Down

0 comments on commit 8a4bc6c

Please sign in to comment.