diff --git a/Duplicati/Library/Modules/Builtin/run-script-example.bat b/Duplicati/Library/Modules/Builtin/run-script-example.bat index e858bbc2b..a1797c568 100644 --- a/Duplicati/Library/Modules/Builtin/run-script-example.bat +++ b/Duplicati/Library/Modules/Builtin/run-script-example.bat @@ -50,7 +50,12 @@ REM --run-script-with-arguments = REM If set to true, the script path will be parsed as a command line, and the REM arguments will be passed to the script. If set to false (default), REM the script path will used as a single path. -REM Use double- or single-quotes to pass arguments with spaces. +REM If you do not have spaces in your script path or arguments, simply enter +REM it as a string: +REM Example: --run-script-before="C:\path\to\script.bat arg1 arg2 --option1=a" +REM If you have spaces in the path or arguements, use double- or single-quotes +REM around the elements that have spaces, similar to how you would do +REM on the command line: REM Example: --run-script-before="\"C:\path to\script.bat\" \"arg1 \" arg2" diff --git a/Duplicati/Library/Modules/Builtin/run-script-example.sh b/Duplicati/Library/Modules/Builtin/run-script-example.sh index 8ce9ef965..4743a3a98 100755 --- a/Duplicati/Library/Modules/Builtin/run-script-example.sh +++ b/Duplicati/Library/Modules/Builtin/run-script-example.sh @@ -50,7 +50,11 @@ # If set to true, the script path will be parsed as a command line, and the # arguments will be passed to the script. If set to false (default), # the script path will used as a single path. -# Use double- or single-quotes to pass arguments with spaces. +# If you do not have spaces in your script path or arguments, simply enter +# it as a string: +# Example: --run-script-before="/path/to/script.sh arg1 arg2 --option=a" +# If you have spaces in the path or arguements, use double- or single-quotes +# around the elements that have spaces, similar to how you would do in a shell: # Example: --run-script-before="\"/path to/script.sh\" \"arg1 \" arg2"