aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-06-19 12:57:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-06-19 12:57:24 -0300
commit8d37d42ad3140030a9e643a1da40c0acf8e20856 (patch)
treef298e2dd45504e0a353a5945598421b6c89f3026
parent5af14132212c62887b6159d2ff56526e5a8e70d5 (diff)
downloadscripts-8d37d42ad3140030a9e643a1da40c0acf8e20856.tar.gz
scripts-8d37d42ad3140030a9e643a1da40c0acf8e20856.tar.bz2
Adds status command to timew-shell
-rwxr-xr-xtimew-shell7
1 files changed, 6 insertions, 1 deletions
diff --git a/timew-shell b/timew-shell
index 0c623f2..b662107 100755
--- a/timew-shell
+++ b/timew-shell
@@ -17,7 +17,12 @@ function timew_shell {
# If line is not empty or commented, process command
STDIN=($STDIN)
- timew ${STDIN[@]}
+ if [ "$STDIN" == "status" ]; then
+ timew
+ else
+ timew ${STDIN[@]}
+ fi
+
last_exit_code="$?"
fi
done