Jelajahi Sumber

Change name of UID environment variable

On linux UID is already set and is read only.
Jim Madge 3 tahun lalu
induk
melakukan
26e569e285
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      workflows/pytorch_GAN_zoo/build.sh

+ 2 - 2
workflows/pytorch_GAN_zoo/build.sh

@@ -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