Skip to content

Commit

Permalink
fix(_cache.sh): avoid re-splitting elements
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Apr 7, 2024
1 parent a51257a commit d486eaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions home.admin/_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ elif [ "$1" = "set" ] || [ "$1" = "init" ]; then
elif [ "$1" = "get" ]; then

position=0
for keystr in $@
for keystr in "$@"
do

# skip first parameter
((position++))
if [ $position -eq 1 ]; then
echo "# _cache.sh $@"
echo "# _cache.sh $*"
continue
fi

Expand Down Expand Up @@ -429,13 +429,13 @@ elif [ "$1" = "valid" ]; then

position=0
lasttouch_overall=""
for keystr in $@
for keystr in "$@"
do

# skip first parameter from script - thats the action string
((position++))
if [ $position -eq 1 ]; then
echo "# _cache.sh $@"
echo "# _cache.sh $*"
continue
fi

Expand Down

0 comments on commit d486eaa

Please sign in to comment.