source: gs3-extensions/selfcontained-nodejs/trunk/PREPARE-LINUX.sh@ 37486

Last change on this file since 37486 was 36900, checked in by davidb, 19 months ago

Added in extra echo newline

  • Property svn:executable set to *
File size: 840 bytes
Line 
1#!/bin/bash
2
3OS_UPPERCAPS=`uname -s | tr '[:lower:]' '[:upper:]'`
4OS_LOWERCAPS=`uname -s | tr '[:upper:]' '[:lower:]'`
5
6version=16.13.2
7installed_dir=node-${OS_LOWERCAPS}-64bit
8
9tar xvzf node-v${version}-linux-x64.tar.gz \
10 && mv node-v${version}-linux-x64 $installed_dir
11
12if [ $? = 0 ] ; then
13 echo ""
14 echo "Untarred NodeJS $version and renamed the directory to:"
15 echo " $installed_dir"
16fi
17
18
19os_full_lc=`uname -s | tr '[:upper:]' '[:lower:]'`
20os_root=${os_full_lc%%_*}
21
22if [ "x$os_root" = "xcygwin" ] ; then
23 if [ ! -x $installed_dir/node.exe ] ; then
24 echo "" >&2
25 echo "**** Note ****" >&2
26 echo "Under Cygwin, the programs in the 'bin' directory often lack" >&2
27 echo "execute permissions. This can be addressed with:" >&2
28 echo " chmod a+x $installed_dir/*.{exe,bat,cmd} $installed_dir/{npm,npx}" >&2
29 fi
30fi
Note: See TracBrowser for help on using the repository browser.