Files
PADD/chronometer2.sh
Jim McKenna 0628ba4c24 chronometer2.sh is now a dummy
Major:
- chronometer.sh does nothing. Please update to using padd.sh
2018-06-23 18:56:17 -04:00

38 lines
782 B
Bash

#!/usr/bin/env bash
# update Chronometer2!
yellowText=$(tput setaf 3) # Yellow
resetText=$(tput sgr0) # Reset to default color
checkBoxInfo="[${yellowText}i${resetText}]" # Info / i
OutputJSON() {
echo "[i] Please update Chronometer2 to PADD! (See https://github.com/jpmck/PADD)"
}
DisplayHelp() {
cat << EOM
::: [i]Please update Chronometer2 to PADD! (See https://github.com/jpmck/PADD)
EOM
exit 0
}
if [[ $# = 0 ]]; then
clear
if [ -e "chronometer2.pid" ]; then
rm -f chronometer2.pid
fi
echo "${checkBoxInfo} Please update Chronometer2 to PADD! (See https://github.com/jpmck/PADD)"
fi
for var in "$@"; do
case "$var" in
"-j" | "--json" ) OutputJSON;;
"-h" | "--help" ) DisplayHelp;;
* ) exit 1;;
esac
done