mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 23:44:48 +08:00
Changed bash shebang to more a general version.
This commit is contained in:
+1
-1
@@ -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/*
|
||||
|
||||
@@ -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' | \
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user