block-snapshot: fix ShellCheck warnings (2/3)
Forward-ported from qubes-core-agent-linux: commit aad6fa6d190d24393e326a4c2ff7ebc3b5921641 Author: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Date: Sat Sep 30 04:56:02 2017 +0200 Hint shellcheck where to look for sourced files, if in repository This will ease running shellcheck from the repository.
This commit is contained in:
parent
45a06e7fad
commit
50f35b3ec1
@ -6,9 +6,11 @@
|
||||
|
||||
dir=$(dirname "$0")
|
||||
if [ "$1" = "prepare" ] || [ "$1" = "cleanup" ]; then
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "$dir/xen-hotplug-common.sh"
|
||||
command=$1
|
||||
else
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "$dir/block-common.sh"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user