Skip to content

Commit

Permalink
Automatically create MAINDIR if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Roth committed Jan 16, 2021
1 parent b696614 commit e5d297d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rM-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ notification() {

LOG="$MAINDIR/$(date +%y%m%d)-$LOG"

# Create MAINDIR if it does not exist
mkdir -p $MAINDIR

echo $'\n' >> $LOG
date >> $LOG

Expand Down

0 comments on commit e5d297d

Please sign in to comment.