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:
parent
67c4f4a194
commit
026b6d059b
1 changed files with 2 additions and 2 deletions
4
runrole
4
runrole
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue