Created
April 28, 2020 23:19
-
-
Save dlangille/ee1fdaea6abfda8509d5f1ed818a97f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGERTAG="$0" | |
set -e | |
# invoke this to get the right value for $LOGGER | |
. config.sh | |
$LOGGER -t ${LOGGERTAG} starts | |
# I'm hardcoding this path here. | |
# This delete is too easy to mess up with a configuration file setting | |
DELDIR=/var/db/freshports/cache/packages | |
mkdir $DELDIR/DELETEME | |
mv $DELDIR/* DELETEME | |
rm -rf $DELDIR DELETEME | |
${LOGGER} -t ${LOGGERTAG} finishes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment