diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-08-03 18:02:39 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-08-03 18:02:39 +0200 |
commit | 329f9e177c087bc7a16d559db0d8104d6733f3b5 (patch) | |
tree | 9f00f516fe411dbe935fe1100a4487bc8d183572 /.local/share/bin/pause | |
parent | 3196f0c4b5104a2e474075574b6b6a3597c8d76c (diff) |
add cmd-like `pause` utility
Diffstat (limited to '.local/share/bin/pause')
-rwxr-xr-x | .local/share/bin/pause | 10 |
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 + |