add nodejs trtfct to remove craps from ubuntu officiel version of node

This commit is contained in:
Francois B 2018-05-19 06:18:44 +02:00
parent f10c1a7bd0
commit fc5cd07233

View file

@ -1178,11 +1178,25 @@ AppsTrtFct="nitrogen;nitrogen_TrtFct
mongodb;mongodb_TrtFct mongodb;mongodb_TrtFct
qttools5-dev-tools;qt_TrtFct qttools5-dev-tools;qt_TrtFct
plank;plank_TrtFct plank;plank_TrtFct
androidstudio;android_TrtFct" androidstudio;android_TrtFct
nodejs8lts;nodejs8lts_TrtFct"
# #
# #
# #
function nodejs8lts_TrtFct () {
msg "Sanitizing NodeJS install"
if which /usr/local/bin/node >/dev/null; then
runCmd "sudo rm /usr/local/bin/node" \
"cleaning/removing legacy node files"
else
print "[INFO] nothing to clean, good :-)"
fi
}
#
# Android Env for adb, fastboot, ....
#
function android_TrtFct () { function android_TrtFct () {
msg "Adding Android devices UDEV rules" msg "Adding Android devices UDEV rules"