This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e # exit on error | |
#Everything in put in a function so "return" will work even if this script is not sourced | |
function do_it() | |
{ | |
if [ $(ls -1dq "Install macOS "*.app | wc -l) -gt 1 ] | |
then |