diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-18 18:21:29 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-18 18:21:29 +0200 |
commit | ac369f0c9d0e4362dc229eccbc2d4692538f5553 (patch) | |
tree | 346bc86bc842cead35720ee33004f7fd02c7cd3c | |
parent | 625f6ed369042b5a2364e17fe1465c92447772e8 (diff) |
minor fixes
-rwxr-xr-x | bin/common/amount | 2 | ||||
-rwxr-xr-x | stowdots | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/common/amount b/bin/common/amount index 8d235e4..71fc6ae 100755 --- a/bin/common/amount +++ b/bin/common/amount @@ -8,7 +8,7 @@ die () } clear -lsblk -o name,size,type,mountpoints +lsblk -o name,size,type,mountpoint die "───────────────────────────────────" lsblk --ascii -o name,mountpoint | grep '^.-' | @@ -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 |