mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
Add color to the output
This commit is contained in:
parent
810644e5a9
commit
4a5385cb8c
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,9 @@
|
||||||
# The regular upgrade function of lure doesn't suffice since
|
# The regular upgrade function of lure doesn't suffice since
|
||||||
# I use automatically updating version names in my install scripts
|
# I use automatically updating version names in my install scripts
|
||||||
|
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
NC='\033[0m'
|
||||||
|
|
||||||
! command -v lure>/dev/null && echo "lure is not installed" && exit
|
! command -v lure>/dev/null && echo "lure is not installed" && exit
|
||||||
! [ -f "$1" ] && echo "Please pass location of a list with github repo names" && exit
|
! [ -f "$1" ] && echo "Please pass location of a list with github repo names" && exit
|
||||||
|
|
||||||
|
@ -20,6 +23,6 @@ do
|
||||||
echo "Upgrading $pkg ($version_present -> $version_new)"
|
echo "Upgrading $pkg ($version_present -> $version_new)"
|
||||||
lure install $pkg
|
lure install $pkg
|
||||||
else
|
else
|
||||||
echo "$pkg is up-to-date"
|
echo -e "$pkg is ${GREEN}up-to-date${NC}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue