Commit bb2da21e authored by Michael Hanke's avatar Michael Hanke

Move args checks into each script.

parent 632c0db7
#!/bin/bash
family=$1
dist=$2
set -e
if [ -z "$family" ]; then
echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
# common options
......
#!/bin/bash
family=$1
dist=$2
set -e
if [ -z "$family" ]; then
echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
set -e
set -u
......
......@@ -31,6 +31,21 @@ EOT
exit 1
fi
family=$1
dist=$2
set -e
if [ -z "$family" ]; then
echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
# common options
......
......@@ -3,16 +3,6 @@ dist=$2
set -e
if [ -z "$family" ]; then
echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
# basic settings
cowbuilderroot="/home/neurodebian"
buildplace="${cowbuilderroot}/build"
......
#!/bin/bash
family=$1
dist=$2
set -e
if [ -z "$family" ]; then
echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
# common options
......
#!/bin/bash
family=$1
dist=$2
set -e
if [ -z "$family" ]; then
echo "you need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the neurodebian repository."
exit 1
fi
if [ -z "$dist" ]; then
echo "you need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
exit 1
fi
. /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
# common options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment