Hi
I'm trying to delete all Windows partitions from disk
#!/bin/bash
check_windows_part=`fdisk -l | grep -i windows`
if [ -z "$check_windows_part"] then
fdisk /dev/sdb << EOF
d
w
EOF
fi
But syntax error near unexpected token `fi'
What's wrong ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.