From 330abb3b7e70446c9dde9f6cb62c2c53b5e3af08 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 25 Jan 2025 22:37:10 -0500 Subject: [PATCH] accept cli args for attic token Signed-off-by: ahuston-0 --- utils/attic-token.bash | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/utils/attic-token.bash b/utils/attic-token.bash index ff7f8fd..4b2febf 100755 --- a/utils/attic-token.bash +++ b/utils/attic-token.bash @@ -1,8 +1,13 @@ #!/usr/bin/env bash -cache="" -cache_pattern="" -token_type="" +if (( $# != 3 )); then + echo "usage: $0 " + exit 1 +fi + +cache="$1" +cache_pattern="$2" +token_type="$3" case $token_type in "cache-creator")