X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=utils%2Fion-completeman.in;h=135efaf248dc5855e06103b22c66c3df98670c71;hp=cfcaade19aaf4dcbbe37f116a89910a81cedd938;hb=f869221ce49f0fb7cca48eee28daff8684305963;hpb=720e6978185b09f2b2f60a6b96018238085a7238 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