Minors bugfixs

-running hellcheck
-optimize md file
This commit is contained in:
2019-12-09 19:53:21 +01:00
parent 1f8e7c7c4d
commit cf760c8b3a
5 changed files with 104 additions and 82 deletions

View File

@@ -19,8 +19,7 @@ if hash mas 2>/dev/null; then
echo ""
echo "$massy"
#if [ -n "$massy" ]; then
if [ ! -z "$(mas outdated)" ]; then
if [ -n "$(mas outdated)" ]; then
echo -e "\033[4mAvailables updates:\033[0m"
echo "$massy" | cut -d " " -f2-5
echo ""
@@ -28,7 +27,7 @@ if hash mas 2>/dev/null; then
if [ "$no_distract" = false ]; then
a=$(echo -e "Do you wanna run \033[1mmas upgrade\033[0m ? (y/n)")
read -p "$a" choice
read -pr "$a" choice
case "$choice" in
y|Y|o ) mas upgrade;;
n|N ) echo "Ok, let's continue";;