X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fion-completeman.in;h=135efaf248dc5855e06103b22c66c3df98670c71;hb=3102bb90c325d9b29ac304d8f3ea0a17df564fc8;hp=cfcaade19aaf4dcbbe37f116a89910a81cedd938;hpb=720e6978185b09f2b2f60a6b96018238085a7238;p=ion3.git diff --git a/utils/ion-completeman.in b/utils/ion-completeman.in index cfcaade..135efaf 100644 --- a/utils/ion-completeman.in +++ b/utils/ion-completeman.in @@ -107,7 +107,9 @@ if test "x$HOME" != x; then usercache="$HOME/.ion3/mancache" fi -syscache="@VARDIR@/mancache" +vardir=${ION_VAR_PATH-@VARDIR@} +syscache="$vardir/mancache" + case "$action" in complete) @@ -134,7 +136,7 @@ case "$action" in fi ;; mksyscache) - mkdir -p "@VARDIR@" + mkdir -p "$vardir" scan > "$syscache" ;; esac