summaryrefslogtreecommitdiff
path: root/test/test-path-util/script.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-12-03 14:58:20 +0100
committerGitHub <noreply@github.com>2020-12-03 14:58:20 +0100
commit6dd16814a56d2ce96ab3c4c611a61e47f2f7b663 (patch)
tree38cdececafec3b424ca0acbcd8d268e7419931e8 /test/test-path-util/script.sh
parent03d8ebb935fb989e03ec27065a16bf9b79a5816b (diff)
parentceedbf8185fc7593366679f02d31da63af8c4bd1 (diff)
downloadsystemd-6dd16814a56d2ce96ab3c4c611a61e47f2f7b663.tar.gz
Merge pull request #17079 from keszybz/late-exec-resolution
Resolve executable paths before execution, use fexecve()
Diffstat (limited to 'test/test-path-util/script.sh')
-rwxr-xr-xtest/test-path-util/script.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-path-util/script.sh b/test/test-path-util/script.sh
new file mode 100755
index 0000000000..57c93e7476
--- /dev/null
+++ b/test/test-path-util/script.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo "$0 $@"
+test "$(basename $0)" = "script.sh" || exit 1
+test "$1" = "--version" || exit 2
+echo "Life is good"