23 lines
409 B
Bash
Executable File
23 lines
409 B
Bash
Executable File
#!/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
|