Small bugfix to ensure BusyBox compatibility
This commit is contained in:
parent
4abf8e4891
commit
84f29acbba
1 changed files with 2 additions and 2 deletions
4
newday
4
newday
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# This script is intended to be run via cron.
|
# This script is intended to be run via cron.
|
||||||
|
|
||||||
# It creates a folder structure in home for the current date in the following format:
|
# 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
|
TODAY_SYM=$HOME/Today
|
||||||
|
|
||||||
# Present day
|
# Present day
|
||||||
TODAY=$(date --iso-8601)
|
TODAY=$(date -I)
|
||||||
YEAR=$(echo $TODAY | awk -F"-" '{print $1}')
|
YEAR=$(echo $TODAY | awk -F"-" '{print $1}')
|
||||||
MONTH=$(echo $TODAY | awk -F"-" '{print $2}')
|
MONTH=$(echo $TODAY | awk -F"-" '{print $2}')
|
||||||
DAY=$(echo $TODAY | awk -F"-" '{print $3}')
|
DAY=$(echo $TODAY | awk -F"-" '{print $3}')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue