From 092f83bad82c86b6c538d980235cfbc0dce53fc0 Mon Sep 17 00:00:00 2001 From: Graham Helton Date: Sun, 16 Oct 2022 19:31:15 -0400 Subject: [PATCH] Added configuration deletion option --- autodeploy.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/autodeploy.sh b/autodeploy.sh index 9fcb696..75e5e66 100755 --- a/autodeploy.sh +++ b/autodeploy.sh @@ -266,11 +266,19 @@ main(){ fi # Process command line arugments - while getopts "g h d n m c p s f a b l :e:" o; do + while getopts "D g h d n m c p s f a b l :e:" o; do case "${o}" in h) h=${OPTARG} usage + ;; + D) + D=${OPTARG} + echo $TICK_ERROR$RED"DELETING CONFIG FILES IN 5 SECONDS,$YELLOW PRESS CTRL+C TO CANCEL"$ENDCOLOR + sleep 5 + rm ~/.config/autodeploy/ -rf + echo $TICK$GREEN"Config files deleted. Run$BLUE autodeploy -f$GREEN to run first time setup."$ENDCOLOR + ;; l) l=${OPTARG}