Skip to content

Commit 77b2a67

Browse files
fix bin/release_addon unbound variable
1 parent ecc9bdc commit 77b2a67

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bin/release_addon

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ PLUGIN_DIR=$(basename $PWD)
44
VERSION=$1
55
REMOTE="danny@eu1.ibericode.com"
66
REMOTE_APP_DIR="/var/www/my.boxzillaplugin.com"
7-
PACKAGE_FILE="$HOME/Downloads/$PLUGIN_DIR-$VERSION.zip"
7+
PACKAGE_NAME="$PLUGIN_DIR-$VERSION.zip"
8+
PACKAGE_FILE="$HOME/Downloads/$PACKAGE_NAME"
89

910
# Exit on errors
1011
set -euo pipefail
@@ -72,7 +73,7 @@ echo "$PACKAGE_FILE created ($SIZE_KB KB)"
7273

7374
# Go back into plugin directory
7475
cd "$PLUGIN_DIR"
75-
printf "Push $PACKAGE_NAME to production? [y/N] "
76+
printf "Push $PACKAGE_FILE to production? [y/N] "
7677
read CONFIRM
7778
if [[ "$CONFIRM" != "y" ]]; then
7879
exit 1;

0 commit comments

Comments
 (0)