aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/pause
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-08-03 18:02:39 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-08-03 18:02:39 +0200
commit329f9e177c087bc7a16d559db0d8104d6733f3b5 (patch)
tree9f00f516fe411dbe935fe1100a4487bc8d183572 /.local/share/bin/pause
parent3196f0c4b5104a2e474075574b6b6a3597c8d76c (diff)
add cmd-like `pause` utility
Diffstat (limited to '.local/share/bin/pause')
-rwxr-xr-x.local/share/bin/pause10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/share/bin/pause b/.local/share/bin/pause
new file mode 100755
index 0000000..8eedbfb
--- /dev/null
+++ b/.local/share/bin/pause
@@ -0,0 +1,10 @@
+#!/bin/sh
+ec=0
+if [ $# -ge 1 ] ; then
+ "$@"
+ ec=$?
+fi
+printf "Press enter to exit..."
+read
+exit $ec
+