fix prepare-amo-source script
This commit is contained in:
parent
7f9766ff95
commit
8d29e7b5bb
@ -3,12 +3,9 @@
|
|||||||
# makes a zip file with human-readable source code that we need to upload to AMO
|
# makes a zip file with human-readable source code that we need to upload to AMO
|
||||||
# since webpack minifies stuff
|
# 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:
|
# first, we collect npm/node versions:
|
||||||
# (NOTE: the last bit is necessary to remove ANSI color codes from output)
|
# (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`
|
NPM_VERSION=`npm --version`
|
||||||
LINUX_VERSION="$(uname -a | sed 's/\//\\\//g')"
|
LINUX_VERSION="$(uname -a | sed 's/\//\\\//g')"
|
||||||
|
|
||||||
@ -31,8 +28,8 @@ echo ""
|
|||||||
echo "—————— AMO SOURCE PREPARATION FINISHED ——————"
|
echo "—————— AMO SOURCE PREPARATION FINISHED ——————"
|
||||||
echo " Debug info:"
|
echo " Debug info:"
|
||||||
echo ""
|
echo ""
|
||||||
echo "nvm ls | head -n 1:"
|
echo "node --version:"
|
||||||
nvm ls | head -n 1
|
node --version
|
||||||
echo ""
|
echo ""
|
||||||
echo "npm --version"
|
echo "npm --version"
|
||||||
npm --version
|
npm --version
|
||||||
|
Loading…
Reference in New Issue
Block a user