Skip to content

Commit

Permalink
Add periods to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AJGranowski committed Sep 29, 2024
1 parent 9604ee8 commit 4092e02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/image/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ print_user() {
grep -e "^$1:" /etc/passwd;
}

# Parse options
# Parse options.
while [ $# -gt 0 ]; do
case $1 in
--debug)
Expand Down Expand Up @@ -53,21 +53,21 @@ if [ "$o_setup" = true ]; then
if ! check_setpriv >/dev/null 2>&1; then
echo 'setpriv is not installed or is out of date. Attempting to install setpriv...';

# Attempt to install setpriv with apk
# Attempt to install setpriv with apk.
if (apk update && apk -s add setpriv) >/dev/null 2>&1; then
apk add --no-cache "setpriv>=$SETPRIV_VERSION";
hash -r;
check_setpriv;
echo 'setpriv installed!';

# Attempt to install setpriv from util-linux with apt-get
# Attempt to install setpriv from util-linux with apt-get.
elif (apt-get update && apt-get install --dry-run util-linux) >/dev/null 2>&1; then
apt-get satisfy --no-install-recommends -y "util-linux (>=$UTIL_LINUX_VERSION)";
hash -r;
check_setpriv;
echo 'setpriv installed!';

# Attempt to install gosu as a fallback
# Attempt to install gosu as a fallback.
elif ! check_gosu >/dev/null 2>&1; then
echo 'gosu is not installed or is out of date. Attempting to install gosu...';

Expand Down Expand Up @@ -171,7 +171,7 @@ else
echo "$CHOWN_LIST" | xargs chown -c "$HOST_MAPPED_UID:$HOST_MAPPED_GID" >&3;
fi

# Execute using $HOST_MAPPED_UID
# Execute using $HOST_MAPPED_UID.
if check_setpriv >/dev/null 2>&1; then
if [ -n "$CAPABILITIES" ]; then
capabilities="-all,$CAPABILITIES";
Expand Down

0 comments on commit 4092e02

Please sign in to comment.