Small bugfix to ensure BusyBox compatibility

This commit is contained in:
Lea 2025-07-06 21:36:30 +02:00
parent 4abf8e4891
commit 84f29acbba

4
newday
View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# This script is intended to be run via cron.
# It creates a folder structure in home for the current date in the following format:
@ -20,7 +20,7 @@ ROOT_DIR=$HOME/$DIR_NAME
TODAY_SYM=$HOME/Today
# Present day
TODAY=$(date --iso-8601)
TODAY=$(date -I)
YEAR=$(echo $TODAY | awk -F"-" '{print $1}')
MONTH=$(echo $TODAY | awk -F"-" '{print $2}')
DAY=$(echo $TODAY | awk -F"-" '{print $3}')