Dossier test

This commit is contained in:
2018-03-12 06:25:43 +01:00
parent 7ea415b906
commit bca8a94150
10 changed files with 218 additions and 0 deletions

22
_test/_mas_test.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
if [[ "${1}" == "latest" ]]; then
echo "mas"
fi
echo "🍏 Mac App Store updates come fast as lightning"
#mas outdated
massy=`mas outdated`
echo ""
if [ -n "$massy" ]; then
#if [ $massy != 0 ]; then
read -p "Do you wanna run mas upgrade? (y/n)" choice
case "$choice" in
y|Y|o ) mas upgrade;;
n|N ) echo "Ok, let's continue";;
* ) echo "invalid";;
esac
echo ""
fi