mirror of https://github.com/parazyd/vm-sdk.git
Quote some unquoted variables in sdk.
This commit is contained in:
parent
e6435d8e31
commit
27adf366a7
13
sdk
13
sdk
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue