diff --git a/Firmware/build.sh b/Firmware/build.sh index 8f3a0730..88570b15 100755 --- a/Firmware/build.sh +++ b/Firmware/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Builds the firmware with the configuration specified by # environment variables named CONFIG_... # If DEPLOY is set, the deliverables are copied to Firmware/deploy/* diff --git a/Firmware/find_programmer.sh b/Firmware/find_programmer.sh index 4b184b6a..cea57038 100755 --- a/Firmware/find_programmer.sh +++ b/Firmware/find_programmer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash openocd -d3 -f board/stm32f4discovery.cfg -c "hla_serial wrong_serial" 2>&1 | \ xxd -p | \ tr -d '\n' | \ diff --git a/tools/odrive/tests/test_runner.py b/tools/odrive/tests/test_runner.py index 8295a1af..9633b92f 100644 --- a/tools/odrive/tests/test_runner.py +++ b/tools/odrive/tests/test_runner.py @@ -794,7 +794,7 @@ if args.setup_host: if not os.path.isfile('/usr/share/arduino/hardware/tools/teensy_post_compile_old'): os.rename('/usr/share/arduino/hardware/tools/teensy_post_compile', '/usr/share/arduino/hardware/tools/teensy_post_compile_old') with open('/usr/share/arduino/hardware/tools/teensy_post_compile', 'w') as scr: - scr.write('#!/bin/bash\n') + scr.write('#!/usr/bin/env bash\n') scr.write('if [ "$ARDUINO_COMPILE_DESTINATION" != "" ]; then\n') scr.write(' cp -r ${2#-path=}/*.ino.hex ${ARDUINO_COMPILE_DESTINATION}\n') scr.write('fi\n')