From b97e227670327a7070dafecba888df82908655d4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 13 Aug 2022 11:30:44 -0500 Subject: Implement -C --- shatom | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shatom b/shatom index ee2d676..8e3abe5 100755 --- a/shatom +++ b/shatom @@ -34,10 +34,11 @@ EOF main() { # Command-line flags - while getopts hc: opt; do + while getopts hc:C: opt; do case "$opt" in h) usage ;; c) CONFIG="$OPTARG" ;; + C) cd "$OPTARG" || exit 2 ;; *) usage 1 ;; esac done -- cgit 1.4.1-21-gabe81