]> err.no Git - dak/commitdiff
import_dataset.sh: use shell redirection instead of cat
authorAnsgar Burchardt <ansgar@43-1.org>
Wed, 24 Oct 2012 21:34:05 +0000 (23:34 +0200)
committerAnsgar Burchardt <ansgar@43-1.org>
Wed, 24 Oct 2012 21:34:05 +0000 (23:34 +0200)
This will give an error when ${INPUTFILE} does not exist instead of feeding an
empty input to control-suite.

scripts/debian/import_dataset.sh

index 5a0b853eafdef9093be6c1c9948e61819d1a1ecd..3293b1c3bc5b52ab000c02d4667b4b99f77b0b85 100755 (executable)
@@ -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")