1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-08 09:06:28 +02:00

fix codeql#4621

This commit is contained in:
Dmytro Novash
2024-08-12 17:57:46 +03:00
parent 86437aa2ba
commit 4ad3277c18

View File

@@ -1,7 +1,7 @@
#!/bin/sh
set -e
if [ ! -z $IFM_DOCKER_UID ]; then
if [ -n $IFM_DOCKER_UID ]; then
# check if UID/GID are numeric
if ! echo "$IFM_DOCKER_UID$IFM_DOCKER_GID" | grep -E "^[0-9]+$" >/dev/null 2>&1; then
echo "FATAL: IFM_DOCKER_UID or IFM_DOCKER_GID are not numeric (UID: $IFM_DOCKER_UID, GID: $IFM_DOCKER_GID)"