]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_login
Also for stats report which repo and which job number use our setup
[neurodebian.git] / tools / nd_login
index 409cddc1538306a389243e1df14c116dc8d6d47e..828dd6709f493f0e6e5fbeb77bc3e3192820a7ed 100755 (executable)
@@ -7,7 +7,7 @@ Script to log into a particular COW and bindmount some directory.
 Synopsis
 --------
 
-  nd_build <family> <codename> <arch> [bindmountdir] [cowbuilderopts]
+  nd_login <family> <codename> <arch> [bindmountdir] [cowbuilderopts]
 
 EOT
 exit 1
@@ -35,13 +35,13 @@ if [ -z "$arch" ]; then
   exit 1
 fi
 
-. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
+. /etc/neurodebian/cmdsettings.sh
 
 # common options
 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
 
 
-if [ -z "bmdir" ]; then
+if [ -n "bmdir" ]; then
   options="$opts --bindmounts $bmdir"
 else
   options="$opts"
@@ -50,4 +50,4 @@ fi
 cowbuilder --login \
              --basepath ${cowbuilderroot}/cow/${family}-${dist}-${arch}.cow \
              $options \
-             $*
+             "$@"