19 lines
388 B
Bash
19 lines
388 B
Bash
#!/bin/bash
|
|
|
|
cd "/PATH/TO/WORKING/DIR/" || exit 1
|
|
# Get the current day of the month
|
|
day_of_month=$(date +%d)
|
|
|
|
# Check if it's the 1st of the month
|
|
if [ "$day_of_month" -le 3 ] && [ "$day_of_month" -ge 1 ]; then
|
|
# Run your command
|
|
rm *.pdf
|
|
rm *.json
|
|
/PATH/TO/WORKING/DIR/lunchbot-env/bin/python getmenu.py
|
|
fi
|
|
|
|
|
|
/PATH/TO/WORKING/DIR/lunchbot-env/bin/python lunch.py
|
|
|
|
|
|
exit
|