mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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
|
grep "^${ROLE_VAR}_" $IIAB_STATE_FILE; echo
|
||||||
sed -i "/^${ROLE_VAR}_/d" $IIAB_STATE_FILE
|
sed -i "/^${ROLE_VAR}_/d" $IIAB_STATE_FILE
|
||||||
else
|
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"
|
echo -e "Try again without the '--reinstall' flag?\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if grep -q "^${ROLE_VAR}_" $IIAB_STATE_FILE; then
|
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
|
grep "^${ROLE_VAR}_" $IIAB_STATE_FILE; echo
|
||||||
echo -e "If you prefer to reinstall it, run: ./runrole --reinstall $1\n"
|
echo -e "If you prefer to reinstall it, run: ./runrole --reinstall $1\n"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue