summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh')
-rwxr-xr-xTests/RunCMake/FindPkgConfig/dummy-pkg-config.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh b/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh
index 852e841..abe14bf 100755
--- a/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh
+++ b/Tests/RunCMake/FindPkgConfig/dummy-pkg-config.sh
@@ -10,9 +10,10 @@ case $1 in
;;
--exists)
shift
- echo "Expected: $@"
+ eval last=\${$#}
+ echo "Expected: ${last}"
echo "Found: ${PKG_CONFIG_PATH}"
- [ "$@" = "${PKG_CONFIG_PATH}" ] || exit 1
+ [ "${last}" = "${PKG_CONFIG_PATH}" ] || exit 1
;;
*)
exit 255