#!/bin/bash ###################################################################### # # Copyright (c) 2015 arakasi72 (https://github.com/arakasi72) # # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # ###################################################################### PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin if [ "$(id -u)" != "0" ]; then echo "Must be run as root, directly or with sudo" exit 1 fi cd /etc/rtinst branch=$(git symbolic-ref --short HEAD) git fetch --all git reset --hard origin/$branch git pull origin $branch ln -sf /etc/rtinst/scripts/* /usr/local/bin