From a48e18b7123f73fc618ded1332a199965821e515 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 24 Oct 2012 23:34:05 +0200 Subject: [PATCH] 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. --- scripts/debian/import_dataset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.39.5