diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-14 10:20:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-14 10:20:05 +0100 |
commit | 6f045b57915d0eac8e590c503b362d2df5e16b85 (patch) | |
tree | b26a305c1ab53fe1f8d3856216c8493064790bc7 /scripts | |
parent | d48ff09d27d234425c3e9f091ae9072d8e6d8b7a (diff) | |
download | PeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.tar.gz PeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.tar.zst PeerTube-6f045b57915d0eac8e590c503b362d2df5e16b85.zip |
Fix tests
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upgrade-peertube.sh | 4 |
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 | ||
7 | nodeMinVersion="6.0.0" | 7 | nodeMinVersion="8.0.0" |
8 | npmMinVersion="3.0.0" | 8 | npmMinVersion="3.0.0" |
9 | 9 | ||
10 | actualNodeVersion=$(node --version | tr -d "v") | 10 | actualNodeVersion=$(node --version | tr -d "v") |
11 | actualNpmVersion=$(npm --version) | 11 | actualNpmVersion=$(npm --version) |
12 | 12 | ||
13 | if verlte $actualNodeVersion $nodeMinVersion; then | 13 | if verlte $actualNodeVersion $nodeMinVersion; then |
14 | echo 'You need node >= 6' | 14 | echo 'You need node >= 8' |
15 | exit 0 | 15 | exit 0 |
16 | fi | 16 | fi |
17 | 17 | ||