On linux UID is already set and is read only.
@@ -1,10 +1,10 @@
#!/bin/sh
-UID=$(id -u)
+_UID=$(id -u)
DEF_FILE="pytorch_GAN_zoo.def"
SIF_FILE="pytorch_GAN_zoo.sif"
-if [ "$UID" = 0 ]; then
+if [ "$_UID" = 0 ]; then
singularity build $SIF_FILE $DEF_FILE
else
singularity build --fakeroot $SIF_FILE $DEF_FILE