mirror of https://github.com/fengyuhetao/shell.git
13 lines
163 B
Bash
13 lines
163 B
Bash
|
#!/bin/bash
|
||
|
#testing the if statement
|
||
|
if date
|
||
|
then
|
||
|
echo "it worked"
|
||
|
fi
|
||
|
echo -e '\n'
|
||
|
if asd
|
||
|
then
|
||
|
echo "it not worked"
|
||
|
fi
|
||
|
echo 'We are outside the if statement'
|