Created
December 19, 2018 15:59
-
-
Save carlosvini/c0ecc5d37075400ac9bcb33a09a8f925 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
last=$(cat hdcheck.log) | |
available=`df -H | grep disk1s1 | awk '{print $4}' | sed "s/G//"` | |
if [ $available -ne $last ]; then | |
open https://cdn.pixabay.com/photo/2014/04/02/10/26/attention-303861_960_720.png | |
fi | |
echo $available > hdcheck.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment