]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-get-source-authenticated
try to avoid removal of crossgraded packages
[apt.git] / test / integration / test-apt-get-source-authenticated
index da63f7cb39be62970fe4815424dcb532b336e020..40710d5d69c795e1683e2d5b0d7feb699a45219e 100755 (executable)
@@ -6,8 +6,8 @@
 #
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture "i386"
@@ -17,8 +17,8 @@ buildsimplenativepackage 'foo' 'all' '2.0'
 
 setupaptarchive --no-update
 
-APTARCHIVE=$(readlink -f ./aptarchive)
-rm -f $APTARCHIVE/dists/unstable/*Release*
+APTARCHIVE="$(readlink -f ./aptarchive)"
+find "$APTARCHIVE/dists/unstable" -name '*Release*' -delete
 
 # update without authenticated InRelease file
 testwarning aptget update --allow-insecure-repositories