Skip to content

Commit 310a155

Browse files
author
Carlos Brandt
committed
Fix [] tests with binary inside
1 parent bcd4b9d commit 310a155

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ function config_user()
3939
DUID="${DUID:-$DEFAULT_UID}"
4040
DGID="${DGID:-$DEFAULT_GID}"
4141

42-
`id $DUSER &> /dev/null` || useradd -u "$DUID" \
43-
-g "$DGID" \
44-
-d "/home/$DUSER" -m \
45-
-s /bin/bash \
46-
"$DUSER"
42+
id $DUSER &> /dev/null || useradd -u "$DUID" \
43+
-g "$DGID" \
44+
-d "/home/$DUSER" -m \
45+
-s /bin/bash \
46+
"$DUSER"
4747

4848
echo "$DUSER"
4949
return 0
@@ -54,7 +54,7 @@ function config_user()
5454
USERNAME=$(config_user)
5555

5656
# If no user created, define the current one (root)
57-
[ `id "$USERNAME"` ] || USERNAME="$USER"
57+
id "$USERNAME" || USERNAME="$USER"
5858

5959
# Garantee the user will run on a proper place.
6060
# WORKDIR is the dir where the user will run from.

0 commit comments

Comments
 (0)