Hi,
I'm trying to run the following command:
String name = '"download"';
sh(script: "rm -fr -v !(${name})");
this results into the following string:
rm -fr -v !("download")
This run just fine into bash shell, I also tried with
/bin/bash rm -fr -v !("download")
But I always end up with:
script.sh: Syntax error: "(" unexpected
What the hell is sh is doing? I can understand the bash is required but why is
he trying to parse the command before running it?
Thanks,
Jerome
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/YQBPR0101MB107495F3847A77E4B8A95B27CD6F0%40YQBPR0101MB1074.CANPRD01.PROD.OUTLOOK.COM.