ansible/test/integration/targets/script/files/test_with_args.sh
Sam Doran ea3638b580 Add proper check mode support to the script module ()
* Do not run script in check mode

Fixes 

* Reformat script integration test

* Add integration tests for check mode of script module

* Fix name on test

* Cleanup temp file

* win_script integration test syntaxt changes

* Add check mode tests for win_script

* Use proper variable in test

* Fail if source file does not exist

* Verify script is accessible and don't copy in check mode

Use shlex to properly split shell arguments, though a path with spaces in it still needs to be quoted in the playbook.
Add note to docs describing such.
Improve error message if file is not found indicating there may be a space in the path.

* Properly encode path now that path is split using shlex

* Allow for spaces in both path and script name

* Add unicode character test to Linux script tests

* Add Linux test for space in path to script
2017-11-13 15:33:44 -08:00

5 lines
No EOL
57 B
Bash
Executable file

#!/usr/bin/env bash
for i in "$@"; do
echo "$i"
done