link nodejs as node only when necessary

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-08-01 09:20:19 +02:00
parent b29e2f55bb
commit 84eb29faae

View file

@ -37,6 +37,12 @@ ln -vfs "$DIR/.config/autostart/conky.desktop" ~/.config/autostart/
mkdir -p ~/.config/vdirsyncer/ mkdir -p ~/.config/vdirsyncer/
ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/ ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/
# symlink 'nodejs' as node on some systems
# will replace symlink if it exists, but won't replace regular file
if [[ ! -f /usr/bin/node ]]; then
sudo ln -vfs /usr/bin/nodejs /usr/bin/node
fi
# tools # tools
ln -vfs "$DIR/tools" ~/ ln -vfs "$DIR/tools" ~/
@ -73,7 +79,6 @@ source $HOME/.rvm/scripts/rvm
rvm install ruby rvm install ruby
# talks: reveal-md # talks: reveal-md
sudo ln -vfs /usr/bin/nodejs /usr/bin/node
sudo npm install -g reveal-md sudo npm install -g reveal-md
# vdir syncer # vdir syncer