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:
Rusty Bird 2018-01-16 06:20:01 +00:00
parent 45a06e7fad
commit 50f35b3ec1
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -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