Skip to content

Commit 6b5d7a5

Browse files
committed
do not use PKG variable name during dependency installations
1 parent 4bf9c9a commit 6b5d7a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/functions.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,12 @@ ask_to_continue() {
204204
}
205205

206206
ask_to_install() {
207-
PKG=$1
207+
ati_PKG=$1
208208
MSG=$2
209209
if [ -n "$AUTOINSTALL" ]; then
210-
logmsg "Auto-installing $PKG..."
211-
logcmd $PFEXEC pkg install $PKG || logerr "pkg install $PKG failed"
210+
logmsg "Auto-installing $ati_PKG..."
211+
logcmd $PFEXEC pkg install $ati_PKG || \
212+
logerr "pkg install $ati_PKG failed"
212213
return
213214
fi
214215
if [ -n "$BATCH" ]; then
@@ -217,7 +218,7 @@ ask_to_install() {
217218
fi
218219
ask_to_continue_ "$MSG " "Install/Abort?" "i/a" "[iIaA]"
219220
if [[ "$REPLY" == "i" || "$REPLY" == "I" ]]; then
220-
logcmd $PFEXEC pkg install $PKG || logerr "pkg install failed"
221+
logcmd $PFEXEC pkg install $ati_PKG || logerr "pkg install failed"
221222
else
222223
logmsg "===== Build aborted ====="
223224
exit 1

0 commit comments

Comments
 (0)