Skip to content

Commit c151d36

Browse files
committed
[fix] : Fixed user check
1 parent cdf9476 commit c151d36

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/share/airootfs.any/root/customize_airootfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function create_user () {
156156
fi
157157
set -u
158158

159-
if user_check "${_username}"; then
159+
if ! user_check "${_username}"; then
160160
useradd -m -s ${usershell} ${_username}
161161
groupadd sudo
162162
usermod -U -g ${_username} ${_username}

system/aur.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function user_check () {
2626
}
2727

2828
# Creating a aur user.
29-
if user_check "${aur_username}"; then
29+
if ! user_check "${aur_username}"; then
3030
useradd -m -d "/aurbuild_temp" "${aur_username}"
3131
fi
3232
mkdir -p "/aurbuild_temp"

0 commit comments

Comments
 (0)