mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
deb_only marking
This commit is contained in:
@@ -110,6 +110,14 @@ function makedest_or_die {
|
||||
makedest || die "Aborting."
|
||||
}
|
||||
|
||||
function deb_only {
|
||||
# Error if not on a debian or derivative
|
||||
if ! test -f /etc/debian_version ; then
|
||||
echo "This tool only available for debian." >&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Begin main tool selection
|
||||
case ${TOOL} in
|
||||
john)
|
||||
@@ -323,6 +331,7 @@ case ${TOOL} in
|
||||
add_bin_symlink "Cura.AppImage" cura
|
||||
;;
|
||||
rr)
|
||||
deb_only
|
||||
ver=$(python3 -c 'from urllib import request; import json; print(json.load(request.urlopen("https://api.github.com/repos/mozilla/rr/releases/latest"))["name"])')
|
||||
echo "Latest rr is ${ver}"
|
||||
download \
|
||||
@@ -433,7 +442,8 @@ EOF
|
||||
cargo install bottom
|
||||
;;
|
||||
delta)
|
||||
if !check_sudo ; then
|
||||
deb_only
|
||||
if ! check_sudo ; then
|
||||
echo "Must be able to run as sudo."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user