diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2022-11-06 20:07:59 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2022-11-06 20:07:59 +0100 |
commit | 462826ff1fc387dc642f1670a68cddc6f0b6cc29 (patch) | |
tree | bddb1c5902819732819364f46fd788f8a6bc52fd /setup-apkcache.in | |
parent | 3da4ed314aeebd403410deaf189d5921cc654c6c (diff) | |
download | alpine-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.in | 2 |
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 |