I am having an issue here trying to create a bash script for rclone
This give me an error:
20d: command not found
DAYS='20d'
PURGE='purge --min-age' ${DAYS}
rclone ${PURGE} ${DEST}/old/ $VERBOSE $LOGS
This works
PURGE='purge --min-age 20d'
rclone ${PURGE} ${DEST}/old/ $VERBOSE $LOGS
Can someone help me out here so I can use the first one? It makes it so much easier for others to use this script if all they have to do is change DAYS