Supprt exit on 'q'

This commit is contained in:
Arun Prakash Jana 2019-06-10 19:47:00 +05:30
parent 80c35e85bd
commit 23f84df1d8
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ while ! [ -z "$dev" ]
do
if [ "$dev" = "l" ]; then
lsblk
elif [ "$dev" = "q" ]; then
exit
else
if grep -qs "$dev " /proc/mounts; then
sync