From 329f9e177c087bc7a16d559db0d8104d6733f3b5 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 3 Aug 2024 18:02:39 +0200 Subject: add cmd-like `pause` utility --- .local/share/bin/pause | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .local/share/bin/pause (limited to '.local/share/bin/pause') 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 + -- cgit v1.2.3