浏览代码

finish if statement with date command

master
Anthony Fadly 1年前
父节点
当前提交
96d5ecdaaa
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      oct1.md

+ 8
- 1
oct1.md 查看文件

@@ -76,5 +76,12 @@ fi #end if

DAY_OF_WEEK=$(date +%A) # set var to output of date command eg "Monday"

if [[ "$DAY_OF_WEEK" == "Monday" ]]
if [[ "$DAY_OF_WEEK" == "Monday" ]];
then
echo "It is Monday my dudes."
echo "Today you have CIT160!"
else
echo "It is not Monday my dudes."
echo "Better do your CIT labs!"
fi
```

正在加载...
取消
保存