syntax error in umount_device()
This commit is contained in:
parent
f950d57167
commit
7345b86390
1 changed files with 1 additions and 1 deletions
2
init.sh
2
init.sh
|
@ -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
|
||||
|
|
Reference in a new issue