aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2018-08-17 16:27:55 -0400
committerRyan Kavanagh <rak@debian.org>2018-08-17 16:27:55 -0400
commitc8a0c753ead5aaaad82cc514ae6c3012b3acebb0 (patch)
tree83a61bbddbd60cdd6c0e486675a760644a46d3b9 /bin
parentAdded firefox to xmonad web (diff)
Check for exact matches in mounting wd*
Diffstat (limited to 'bin')
-rwxr-xr-xbin/wd-mount4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/wd-mount b/bin/wd-mount
index 6288385..3b1312c 100755
--- a/bin/wd-mount
+++ b/bin/wd-mount
@@ -1,12 +1,12 @@
#!/bin/sh
-if ! mount | grep /media/wd > /dev/null ; then
+if ! mount | grep -w /media/wd > /dev/null ; then
if [ -e /dev/disk/by-uuid/71bc8a1f-1942-4341-8ce1-8f8f3bf42d1a ]; then
sudo cryptdisks_start wd && mount /dev/mapper/wd
fi
fi
-if ! mount | grep /media/wd-bak > /dev/null ; then
+if ! mount | grep -w /media/wd-bak > /dev/null ; then
if [ -e /dev/disk/by-uuid/68b52a2b-2be5-4d40-98ba-c8469da50f1f ]; then
sudo cryptdisks_start wd-bak-work && mount /dev/mapper/wd-bak-work
elif [ -e /dev/disk/by-uuid/49491f12-45ec-4f3f-9f70-73a94149aaf2 ]; then