I try to write a very simple bash script file named bash_script.sh
#!/bin/bash
if [ -z $1 ];then
echo $1
else
echo 'no variable'
fi
in the terminal I tried to run ./bash_script.sh hello but the output on the terminal is no variable. What did I do wrong here?