patch for #3649 which doesn't require #!/bin/bash at the top of the bash script

This commit is contained in:
Tully Foote 2011-08-19 04:58:16 +00:00
parent e1df395d5c
commit d4c21e909b
2 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,7 @@
return0: return0:
rosdep_test_os: | rosdep_test_os: |
#!/bin/bash
exit 0 exit 0
return1: return1:
rosdep_test_os: | rosdep_test_os: |
#!/bin/bash
exit 1 exit 1

View File

@ -498,7 +498,7 @@ class Rosdep:
# Detect a script and execute it if desired # Detect a script and execute it if desired
if len(rosdep_dict.split('\n')) > 1: 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') installer = self.osi.get_os().get_installer('default')
packages = rosdep_dict.split() packages = rosdep_dict.split()