Skip to content

Commit 9aafa4f

Browse files
committed
[update] : Read AURHELPER from enviromnment
1 parent 50821fe commit 9aafa4f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/base/config.i686

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
#
1111

1212
# この設定ファイルだけで使える変数
13-
AURHELPER="paru"
13+
UNSETVAR=false
14+
if [[ -z "${AURHELPER-""}" ]]; then
15+
AURHELPER="paru"
16+
UNSETVAR=true
17+
fi
1418

1519
case "$AURHELPER" in
1620
"trizen")
@@ -79,4 +83,5 @@ case "$AURHELPER" in
7983
exit 1
8084
;;
8185
esac
82-
unset AURHELPER
86+
87+
[[ "$UNSETVAR" = false ]] || unset AURHELPER

0 commit comments

Comments
 (0)