aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/upgrade-peertube.sh
diff options
context:
space:
mode:
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