We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d52b71b + d9dc740 commit 5f0025eCopy full SHA for 5f0025e
rails-install-ubuntu.sh
@@ -2,8 +2,14 @@
2
3
set -e
4
5
-echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked."
6
-sudo add-apt-repository ppa:chris-lea/node.js
+if ! greq -q xenial /etc/lsb-release
+then
7
+ echo "Adding PPA for up-to-date Node.js runtime. Give your password when asked."
8
+ sudo add-apt-repository ppa:chris-lea/node.js
9
+else
10
+ : # Xenial not (yet, as of April 2016) supported by that ppa,
11
+ # use default distro node.js.
12
+fi
13
14
echo "Updates packages. Asks for your password."
15
sudo apt-get update -y
0 commit comments