aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/upgrade-peertube.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-14 10:20:05 +0100
committerChocobozzz <me@florianbigard.com>2017-12-14 10:20:05 +0100
commit6f045b57915d0eac8e590c503b362d2df5e16b85 (patch)
treeb26a305c1ab53fe1f8d3856216c8493064790bc7 /scripts/upgrade-peertube.sh
parentd48ff09d27d234425c3e9f091ae9072d8e6d8b7a (diff)
downloadPeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.tar.gz
PeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.tar.zst
PeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.zip
Fix tests
Diffstat (limited to 'scripts/upgrade-peertube.sh')
-rwxr-xr-xscripts/upgrade-peertube.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upgrade-peertube.sh b/scripts/upgrade-peertube.sh
index 562a2a618..bfef38264 100755
--- a/scripts/upgrade-peertube.sh
+++ b/scripts/upgrade-peertube.sh
@@ -4,14 +4,14 @@ verlte() {
4 [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ] 4 [ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
5} 5}
6 6
7nodeMinVersion="6.0.0" 7nodeMinVersion="8.0.0"
8npmMinVersion="3.0.0" 8npmMinVersion="3.0.0"
9 9
10actualNodeVersion=$(node --version | tr -d "v") 10actualNodeVersion=$(node --version | tr -d "v")
11actualNpmVersion=$(npm --version) 11actualNpmVersion=$(npm --version)
12 12
13if verlte $actualNodeVersion $nodeMinVersion; then 13if verlte $actualNodeVersion $nodeMinVersion; then
14 echo 'You need node >= 6' 14 echo 'You need node >= 8'
15 exit 0 15 exit 0
16fi 16fi
17 17