From 8d29e7b5bb1afe90da30406efb0f977493996265 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 25 Jul 2020 13:02:25 +0200 Subject: [PATCH] fix prepare-amo-source script --- scripts/prepare-amo-source.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/prepare-amo-source.sh b/scripts/prepare-amo-source.sh index 4a0f53f..cd76b5a 100755 --- a/scripts/prepare-amo-source.sh +++ b/scripts/prepare-amo-source.sh @@ -3,12 +3,9 @@ # makes a zip file with human-readable source code that we need to upload to AMO # since webpack minifies stuff -# we need to do this, otherwise `nvm` command won't be available -. ~/.nvm/nvm.sh - # first, we collect npm/node versions: # (NOTE: the last bit is necessary to remove ANSI color codes from output) -NODE_VERSION=`nvm ls | head -n 1 | awk '{print $2}' | sed 's/\x1B\[[0-9;]\+[A-Za-z]//g'` +NODE_VERSION=`node --version` NPM_VERSION=`npm --version` LINUX_VERSION="$(uname -a | sed 's/\//\\\//g')" @@ -31,8 +28,8 @@ echo "" echo "—————— AMO SOURCE PREPARATION FINISHED ——————" echo " Debug info:" echo "" -echo "nvm ls | head -n 1:" -nvm ls | head -n 1 +echo "node --version:" +node --version echo "" echo "npm --version" npm --version