From ecc7b929e9fbb65af444f6d82a7e4b3d4d2549d1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 5 Feb 2025 23:41:14 +0300 Subject: [PATCH] args... Signed-off-by: Alex A. Naanou --- Archive/snapshot.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Archive/snapshot.sh b/Archive/snapshot.sh index bc4ea4c7..b30b0e69 100755 --- a/Archive/snapshot.sh +++ b/Archive/snapshot.sh @@ -17,6 +17,17 @@ # - a way to maintain a set number of snapshots... # +# handle args... +for arg in "$@" ; do + case $arg in + -h|--help) + # XXX + exit + ;; + esac +done + + SNAPSHOT_DIR=.snapshots SUBVOLUME_DIR=media SNAPSHOT_COUNT=5