deb_only marking

This commit is contained in:
David Tomaschik
2022-11-26 15:30:18 -08:00
parent ee5a78b578
commit 12b2ed211b

View File

@@ -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,6 +442,7 @@ EOF
cargo install bottom
;;
delta)
deb_only
if ! check_sudo ; then
echo "Must be able to run as sudo."
exit 1