From d4c21e909b0901d77ea74656307ca65c9f81c8c1 Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Fri, 19 Aug 2011 04:58:16 +0000 Subject: [PATCH] patch for #3649 which doesn't require #!/bin/bash at the top of the bash script --- test/test_rosdep/test/yaml_script.yaml | 2 -- tools/rosdep/src/rosdep/core.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test_rosdep/test/yaml_script.yaml b/test/test_rosdep/test/yaml_script.yaml index 1cb05fab..9b1a0e1c 100644 --- a/test/test_rosdep/test/yaml_script.yaml +++ b/test/test_rosdep/test/yaml_script.yaml @@ -1,9 +1,7 @@ return0: rosdep_test_os: | - #!/bin/bash exit 0 return1: rosdep_test_os: | - #!/bin/bash exit 1 diff --git a/tools/rosdep/src/rosdep/core.py b/tools/rosdep/src/rosdep/core.py index d95a3ac8..ccd67a82 100644 --- a/tools/rosdep/src/rosdep/core.py +++ b/tools/rosdep/src/rosdep/core.py @@ -498,7 +498,7 @@ class Rosdep: # Detect a script and execute it if desired if len(rosdep_dict.split('\n')) > 1: - return create_tempfile_from_string_and_execute(rosdep_dict) + return create_tempfile_from_string_and_execute("#!/bin/bash\n"+rosdep_dict) installer = self.osi.get_os().get_installer('default') packages = rosdep_dict.split()