X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_updatedist;h=39d345ecaba8e72b863048c7edf3e804fe54604a;hb=65637b9d168eaabd2097ec3648eb4f740d9288c6;hp=e4cc9aa4b26c6e8de10ab0fc7f526a533666cb94;hpb=bb2da21ef0c9bb401570dd6b7c8c22ac15fefd3b;p=neurodebian.git diff --git a/tools/nd_updatedist b/tools/nd_updatedist index e4cc9aa..39d345e 100755 --- a/tools/nd_updatedist +++ b/tools/nd_updatedist @@ -1,7 +1,12 @@ #!/bin/bash -family=$1 -dist=$2 +if [ $# -eq 1 ]; then + family=${1%%-*} + dist=${1##*-} +elif [ $# -ge 2 ]; then + family=$1 + dist=$2 +fi set -e @@ -15,7 +20,7 @@ if [ -z "$dist" ]; then exit 1 fi -. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh +. /etc/neurodebian/cmdsettings.sh "$family" "$dist" # common options opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"