syntax error in umount_device()

This commit is contained in:
Yorick Barbanneau 2018-03-06 11:00:19 +01:00
parent f950d57167
commit 7345b86390

View file

@ -167,7 +167,7 @@ fi
# unmount if device is mounted
umount_device (){
local mounted_part=$(mount | grep "${1}[0-9]" | awk '{print $3}')
if [ ! -z mounted_part ]
if [ ! -z $mounted_part ]
then
for part in $mounted_part
do