install: Dont quote number vars, to support older bash versions

This commit is contained in:
Noah Gorny
2021-03-31 23:43:13 +03:00
parent 4860fb8c60
commit a8b43620f8

View File

@@ -171,7 +171,8 @@ while getopts "hsinaf" opt; do
;;
esac
done
shift $(("$OPTIND" - 1))
shift $((OPTIND - 1))
if [[ $silent ]] && [[ $interactive ]]; then
echo -e "\033[91mOptions --silent and --interactive are mutually exclusive. Please choose one or the other.\033[m"