mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00
fix(_cache.sh): quote $@ and use $* with echo
This commit is contained in:
parent
b65fbf066d
commit
097016c71f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user