Adds `run update to update`

This commit is contained in:
Thomas Forgione 2019-05-03 11:32:03 +02:00
parent 5aba88e0be
commit a4167b71b1
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 3 additions and 1 deletions

View File

@ -42,13 +42,15 @@ _sentence() {
color="32"
n_verb=`shuf -i0-"$((${#verb[@]}-1))" -n1`
s_verb=${verb[$n_verb]}
end=""
elif [ $1 = "not_updated" ]; then
color="31"
n_verb=`shuf -i0-"$((${#no_verb[@]}-1))" -n1`
s_verb=${no_verb[$n_verb]}
end="Run \`update\` to update your system."
fi
echo -e "\033[$color;1m${subject0[$n_subject0]} ${adjective[$n_adjective]} ${subject1[$n_subject1]} $s_verb ${adverb[$n_adverb]}${dot[$n_dot]}\033[0m"
echo -e "\033[$color;1m${subject0[$n_subject0]} ${adjective[$n_adjective]} ${subject1[$n_subject1]} $s_verb ${adverb[$n_adverb]}${dot[$n_dot]} ${end}\033[0m"
}
_check_date() {