X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_updatedist;h=39d345ecaba8e72b863048c7edf3e804fe54604a;hb=HEAD;hp=8a92ac8601858cbdf271811dd840e8784431425b;hpb=b9aa9eb584bd2402306b514ad05aff83a9699ce8;p=neurodebian.git diff --git a/tools/nd_updatedist b/tools/nd_updatedist index 8a92ac8..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 -. /etc/neurodebian/cmdsettings.sh +. /etc/neurodebian/cmdsettings.sh "$family" "$dist" # common options opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"