mirror of
https://github.com/elisspace/rtinst.git
synced 2026-08-30 08:02:14 +00:00
32 lines
834 B
Bash
Executable File
32 lines
834 B
Bash
Executable File
#!/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
|
|
|
|
blob=master
|
|
RTDIR=https://raw.githubusercontent.com/arakasi72/rtinst/$blob
|
|
|
|
if [ "$blob" = "master" ]; then
|
|
script_dir=https://github.com/arakasi72/rtinst/trunk/scripts
|
|
else
|
|
script_dir=https://github.com/arakasi72/rtinst/branches/$blob/scripts
|
|
fi
|
|
|
|
check_url() {
|
|
if [[ `wget -S --spider $1 2>&1 | grep 'HTTP/1.1 200 OK'` ]]; then echo "true"; fi
|
|
}
|
|
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
echo "Must be run as root, directly or with sudo"
|
|
exit 1
|
|
fi
|
|
|