We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
apt-config shell
1 parent f193f8a commit 55eee3eCopy full SHA for 55eee3e
templates/update_had_no_effect.sh.epp
@@ -4,13 +4,13 @@
4
Integer $tries = 1,
5
| -%>
6
7
-DIR='var/cache/apt'
8
EVAL="$(mktemp)" || EVAL=/tmp/aptdir
9
apt-config shell DIR Dir::Cache > "$EVAL" && . "$EVAL"
+[ "$DIR" ] || DIR='var/cache/apt'
10
cd "/$DIR" || exit 0
11
export TMPDIR="/$DIR"
12
-CUR=pkgcache.bin
13
apt-config shell CUR DIR::Cache::pkgcache >"$EVAL" && . "$EVAL"
+[ "$CUR" ] || CUR=pkgcache.bin
14
OLD="$(mktemp)" || OLD="/${DIR}/${CUR}.old"
15
rm -f "$EVAL"
16
ln -f "$CUR" "$OLD"
0 commit comments