mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-10-13 07:36:13 +08:00
fix: allow PUID and PGID to be unset (#656)
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if ! [[ "$PUID" =~ ^[0-9]+$ ]] || ! [[ "$PGID" =~ ^[0-9]+$ ]]; then
|
||||
echo "[entrypoint] ERROR: PUID and PGID must be numeric integers." >&2
|
||||
if [[ -n "$PUID" && ! "$PUID" =~ ^[0-9]+$ ]] || [[ -n "$PGID" && ! "$PGID" =~ ^[0-9]+$ ]] || [[ -z "$PUID" && -n "$PGID" ]]; then
|
||||
echo "[entrypoint] ERROR: PUID and PGID must be numeric integers or unset." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user