We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcd4b9d commit 310a155Copy full SHA for 310a155
1 file changed
entrypoint.sh
@@ -39,11 +39,11 @@ function config_user()
39
DUID="${DUID:-$DEFAULT_UID}"
40
DGID="${DGID:-$DEFAULT_GID}"
41
42
- `id $DUSER &> /dev/null` || useradd -u "$DUID" \
43
- -g "$DGID" \
44
- -d "/home/$DUSER" -m \
45
- -s /bin/bash \
46
- "$DUSER"
+ id $DUSER &> /dev/null || useradd -u "$DUID" \
+ -g "$DGID" \
+ -d "/home/$DUSER" -m \
+ -s /bin/bash \
+ "$DUSER"
47
48
echo "$DUSER"
49
return 0
@@ -54,7 +54,7 @@ function config_user()
54
USERNAME=$(config_user)
55
56
# If no user created, define the current one (root)
57
-[ `id "$USERNAME"` ] || USERNAME="$USER"
+id "$USERNAME" || USERNAME="$USER"
58
59
# Garantee the user will run on a proper place.
60
# WORKDIR is the dir where the user will run from.
0 commit comments