瀏覽代碼

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
```

Loading…
取消
儲存