1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 12:12:12 +00:00

runrole: consistent "line(s)" grammar across all 3 cases

This commit is contained in:
A Holt 2020-11-06 19:09:15 -05:00 committed by GitHub
parent 67c4f4a194
commit 026b6d059b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,13 +65,13 @@ if $REINSTALL; then # Add '_' so '--reinstall calibre' doesn't zap calibreweb
grep "^${ROLE_VAR}_" $IIAB_STATE_FILE; echo
sed -i "/^${ROLE_VAR}_/d" $IIAB_STATE_FILE
else
echo -e "\e[1mERROR: $IIAB_STATE_FILE has no lines that begin with '${ROLE_VAR}_'\e[0m\n"
echo -e "\e[1mERROR: $IIAB_STATE_FILE has no line(s) that begin with '${ROLE_VAR}_'\e[0m\n"
echo -e "Try again without the '--reinstall' flag?\n"
exit 1
fi
else
if grep -q "^${ROLE_VAR}_" $IIAB_STATE_FILE; then
echo -e "\e[1mWARNING: $IIAB_STATE_FILE already has this/these line(s):\e[0m\n"
echo -e "\e[1mWARNING: $IIAB_STATE_FILE already has these line(s):\e[0m\n"
grep "^${ROLE_VAR}_" $IIAB_STATE_FILE; echo
echo -e "If you prefer to reinstall it, run: ./runrole --reinstall $1\n"