summaryrefslogtreecommitdiff
path: root/stowdots
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-07-18 18:21:29 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-07-18 18:21:29 +0200
commitac369f0c9d0e4362dc229eccbc2d4692538f5553 (patch)
tree346bc86bc842cead35720ee33004f7fd02c7cd3c /stowdots
parent625f6ed369042b5a2364e17fe1465c92447772e8 (diff)
minor fixes
Diffstat (limited to 'stowdots')
-rwxr-xr-xstowdots4
1 files changed, 2 insertions, 2 deletions
diff --git a/stowdots b/stowdots
index 1c72f80..dc056f4 100755
--- a/stowdots
+++ b/stowdots
@@ -1,6 +1,6 @@
#!/bin/sh
-trap "echo -e '\nbye'; exit 1" EXIT
+trap "exit 1" EXIT INT
die () {
echo "$@" 1>&2
@@ -22,7 +22,7 @@ else
die "E: MACH not set" >&2
die "Enter valid value for 'MACH'"
die "d(esktop) | s(erver) | l(aptop)"
- echo -n ">" >&2
+ die -n ">"
read MACH
fi