I have problem when check input from shell, can someone help me:
#!/bin/bash
export type=$1
echo "$type"
if [$type=="kvm"]
then
echo "true"
else
echo "false"
fi
I expect shell will print true but the result is:
> bash ~/my_scripts/dssh.sh kvm
kvm
/home/xdoabui/my_scripts/dssh.sh: line 15: [kvm==kvm]: command not found
false