summaryrefslogtreecommitdiff
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
parent625f6ed369042b5a2364e17fe1465c92447772e8 (diff)
minor fixes
-rwxr-xr-xbin/common/amount2
-rwxr-xr-xstowdots4
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 '^.-' |
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