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

pull/1862/head
Noah Gorny 2021-03-31 23:43:13 +03:00
parent 4860fb8c60
commit a8b43620f8
1 changed files with 2 additions and 1 deletions

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"