diff --git a/tests/lib/snaps/test-snapd-sh/bin/cmd b/tests/lib/snaps/test-snapd-sh/bin/cmd new file mode 100755 index 00000000000..e55f49a5a09 --- /dev/null +++ b/tests/lib/snaps/test-snapd-sh/bin/cmd @@ -0,0 +1,6 @@ +#!/bin/sh +PS1='$ ' +command="$1" +shift + +exec "$command" "$@" diff --git a/tests/lib/snaps/test-snapd-sh/meta/snap.yaml b/tests/lib/snaps/test-snapd-sh/meta/snap.yaml index 1081e8f8bb5..27ea1dc5fe7 100644 --- a/tests/lib/snaps/test-snapd-sh/meta/snap.yaml +++ b/tests/lib/snaps/test-snapd-sh/meta/snap.yaml @@ -5,3 +5,5 @@ version: 1.0 apps: sh: command: bin/sh + cmd: + command: bin/cmd