From: Chris Koeritz Date: Sun, 28 Aug 2022 21:28:32 +0000 (-0400) Subject: being more careful and also adding dir del stopper X-Git-Tag: 2.140.136^2~16 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=eca14edcdb9e42d247e9d6521fd1c496171739a4;p=feisty_meow.git being more careful and also adding dir del stopper --- diff --git a/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh b/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh index ff273ba8..596193cb 100644 --- a/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh +++ b/scripts/customize/fred/scripts/rip_burn/create_disco_dirs.sh @@ -1,8 +1,12 @@ #!/bin/bash +FROOT=$HOME/disco -mkdir $HOME/disco -pushd $HOME/disco &>/dev/null -mkdir -p burn converted grind rip -popd &>/dev/null - +for dir in $FROOT $FROOT/burn $FROOT/converted $FROOT/grind $FROOT/rip; do + # make the currently chosen directory and ignore if already exists. + mkdir -p $dir +#check_on_error + # put a sentinel file in the dir to keep it from being deleted. + echo keepy yo yes $RANDOM >>"$dir/.keep" +#check_on_error +done