Quote some unquoted variables in sdk.

This commit is contained in:
parazyd 2020-11-13 12:30:19 +01:00
parent e6435d8e31
commit 27adf366a7
No known key found for this signature in database
GPG Key ID: 6B636BF0493EE747
1 changed files with 7 additions and 6 deletions

13
sdk
View File

@ -1,4 +1,5 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# shellcheck shell=bash
# Copyright (c) 2016-2020 Dyne.org Foundation # Copyright (c) 2016-2020 Dyne.org Foundation
# vm-sdk is written and maintained by Ivan J. <parazyd@dyne.org> # vm-sdk is written and maintained by Ivan J. <parazyd@dyne.org>
# #
@ -62,15 +63,15 @@ load() {
) )
oslib="${os_map[$os]}" oslib="${os_map[$os]}"
[[ -f $oslib ]] || { die "no valid distro specified"; exit 1 } [[ -f "$oslib" ]] || { die "No valid distro specified"; return 1; }
source $oslib source "$oslib"
blendlib="${blend_map[$blend]}" blendlib="${blend_map[$blend]}"
[[ -f $blendlib ]] || { act "no blend specified" } [[ -f "$blendlib" ]] || act "No blend specified"
[[ -f $blendlib ]] && { [[ -f "$blendlib" ]] && {
source $blendlib || zerr source "$blendlib" || { zerr; return 1; }
act "$(basename $blend) blend loaded" act "$(basename "$blend") blend loaded"
export BLEND=1 export BLEND=1
} }