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:
@@ -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)"
|
||||
|
Reference in New Issue
Block a user