From: Ansgar Burchardt Date: Wed, 24 Oct 2012 21:34:05 +0000 (+0200) Subject: import_dataset.sh: use shell redirection instead of cat X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a48e18b7123f73fc618ded1332a199965821e515;p=dak.git import_dataset.sh: use shell redirection instead of cat This will give an error when ${INPUTFILE} does not exist instead of feeding an empty input to control-suite. --- diff --git a/scripts/debian/import_dataset.sh b/scripts/debian/import_dataset.sh index 5a0b853e..3293b1c3 100755 --- a/scripts/debian/import_dataset.sh +++ b/scripts/debian/import_dataset.sh @@ -59,7 +59,7 @@ if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then BRITNEY=" --britney" fi -cat ${INPUTFILE} | dak control-suite --set ${IMPORTSUITE} ${BRITNEY} +dak control-suite --set ${IMPORTSUITE} ${BRITNEY} < ${INPUTFILE} if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then NOW=$(date "+%Y%m%d%H%M")