diff options
| author | krisdoodle45 <86745210+krisdoodle45@users.noreply.github.com> | 2021-09-24 16:35:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-24 10:35:49 -0400 |
| commit | 828c05218408908331397e5e3609b7a28f49aa0b (patch) | |
| tree | bead1e17701af543af12b2915f89462e008b678a /.local/bin/dmenuumount | |
| parent | 15d09bac36f1a5845c87d6c5f4edb64634407546 (diff) | |
| download | eibhear-828c05218408908331397e5e3609b7a28f49aa0b.tar.gz eibhear-828c05218408908331397e5e3609b7a28f49aa0b.tar.zst eibhear-828c05218408908331397e5e3609b7a28f49aa0b.zip | |
We don't need sed here (#1006)
Diffstat (limited to '.local/bin/dmenuumount')
| -rwxr-xr-x | .local/bin/dmenuumount | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index f7d0747..946d12c 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -26,7 +26,7 @@ asktype() { \ esac } -drives=$(lsblk -nrpo "name,type,size,mountpoint,label" | sed 's/ /:/g' | awk -F':' '$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s) %s\n",$4,$3,$5}') +drives=$(lsblk -nrpo "name,type,size,mountpoint,label" | awk -F':' '{gsub(/ /,":")}$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s) %s\n",$4,$3,$5}') if ! grep simple-mtpfs /etc/mtab; then [ -z "$drives" ] && echo "No drives to unmount." && exit |
