Commit 3baf13c7 authored by Dave Martin's avatar Dave Martin Committed by Will Deacon
Browse files

update_headers.sh: Add missing shell quoting



update_headers.sh can break if the current working directory has a
funny name or if something odd is passed for LINUX_ROOT.

In the interest of cleanliness, quote where appropriate.
Signed-off-by: default avatarDave Martin <Dave.Martin@arm.com>
Reviewed-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 534cac24
......@@ -11,17 +11,17 @@ if [ "$#" -ge 1 ]
then
LINUX_ROOT="$1"
else
LINUX_ROOT=/lib/modules/$(uname -r)/source
LINUX_ROOT="/lib/modules/$(uname -r)/source"
fi
if [ ! -d $LINUX_ROOT/include/uapi/linux ]
if [ ! -d "$LINUX_ROOT/include/uapi/linux" ]
then
echo "$LINUX_ROOT does not seem to be valid Linux source tree."
echo "usage: $0 [path-to-Linux-source-tree]"
exit 1
fi
cp $LINUX_ROOT/include/uapi/linux/kvm.h include/linux
cp -- "$LINUX_ROOT/include/uapi/linux/kvm.h" include/linux
for arch in arm arm64 mips powerpc x86
do
......@@ -30,6 +30,6 @@ do
arm64) KVMTOOL_PATH=arm/aarch64 ;;
*) KVMTOOL_PATH=$arch ;;
esac
cp $LINUX_ROOT/arch/$arch/include/uapi/asm/kvm.h \
$KVMTOOL_PATH/include/asm
cp -- "$LINUX_ROOT/arch/$arch/include/uapi/asm/kvm.h" \
"$KVMTOOL_PATH/include/asm"
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment