summaryrefslogtreecommitdiff
path: root/setup-apkcache.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-11-06 20:07:59 +0100
committerJakub Jirutka <jakub@jirutka.cz>2022-11-06 20:07:59 +0100
commit462826ff1fc387dc642f1670a68cddc6f0b6cc29 (patch)
treebddb1c5902819732819364f46fd788f8a6bc52fd /setup-apkcache.in
parent3da4ed314aeebd403410deaf189d5921cc654c6c (diff)
downloadalpine-conf-462826ff1fc387dc642f1670a68cddc6f0b6cc29.zip
always quote vars in 'local' assignment
Some shells may apply word splitting after expanding variable in `local a=$1`. I know just about yash, but since `local` is supposed to be a builtin *command*, the "correct" behaviour of common shells is actually a special case for `local` - it doesn't apply for other commands. See https://osdn.net/projects/yash/ticket/46041.
Diffstat (limited to 'setup-apkcache.in')
-rw-r--r--setup-apkcache.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-apkcache.in b/setup-apkcache.in
index 8ef0ecf..6c060eb 100644
--- a/setup-apkcache.in
+++ b/setup-apkcache.in
@@ -40,7 +40,7 @@ find_fstab_mount_point() {
# figure out mount point
find_mount_point() {
- local dir=$(find_fstab_mount_point "$1")
+ local dir="$(find_fstab_mount_point "$1")"
if [ -d "$dir" ] && [ "$dir" != "/" ]; then
echo $dir
return