X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/061ee5f0efa9d8e8fe4796c13af68fe282a21073..84eec207be35b8c117c430296d4c212b079c00c1:/test/integration/test-apt-extracttemplates?ds=inline diff --git a/test/integration/test-apt-extracttemplates b/test/integration/test-apt-extracttemplates index 276862464..b299d85f4 100755 --- a/test/integration/test-apt-extracttemplates +++ b/test/integration/test-apt-extracttemplates @@ -1,8 +1,8 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'amd64' @@ -10,7 +10,7 @@ configarchitecture 'amd64' # apt-extracttemplates needs this insertinstalledpackage 'pkg-with-template' 'amd64' '1.0' -# build a simple package that contains a config and a tempalte +# build a simple package that contains a config and a template mkdir -p DEBIAN CONFIG_STR="#!/bin/sh random shell stuff @@ -35,7 +35,7 @@ Description: Some bar var OUT='rootdir/tmp/testsuccess.output' testequal "$1" cut -f1 -d' ' $OUT if [ -n "$2" ]; then - testequal '' cut -f2 -d' ' $OUT + testequal '' cut -s -f2 -d' ' $OUT else testequal '1.0' cut -f2 -d' ' $OUT fi