mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
tools: added error handler to timer
This commit is contained in:
@@ -36,10 +36,17 @@ stopwatch() {
|
||||
done
|
||||
}
|
||||
|
||||
no_args="true"
|
||||
while getopts "c:sh" arg; do
|
||||
case $arg in
|
||||
c) countdown $OPTARG;;
|
||||
s) stopwatch;;
|
||||
h) echo "$help";;
|
||||
*) echo "$help";;
|
||||
esac
|
||||
no_args="false"
|
||||
done
|
||||
|
||||
if [ "$no_args" = "true" ]; then
|
||||
echo "$help"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user