refactor(scripts): Use `#!/usr/bin/env` as part of shebang
This resolves build errors in systems like NixOS, where `/bin/bash` doesn't exist.
This commit is contained in:
parent
185cc2bc29
commit
8e3ac20145
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
BKPPATH="firmware-backups"
|
BKPPATH="firmware-backups"
|
||||||
|
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if make -j "$(nproc)" T=open_source DEBUG=1 >log.txt 2>&1; then
|
if make -j "$(nproc)" T=open_source DEBUG=1 >log.txt 2>&1; then
|
||||||
echo "build success"
|
echo "build success"
|
||||||
|
|
2
clear.sh
2
clear.sh
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
make -j "$(nproc)" T=open_source DEBUG=1 clean
|
make -j "$(nproc)" T=open_source DEBUG=1 clean
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
txt_to_wav() {
|
txt_to_wav() {
|
||||||
hash="$(md5sum "$1" | cut -d ' ' -f 1)"
|
hash="$(md5sum "$1" | cut -d ' ' -f 1)"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
num=$(find /dev -name 'ttyACM*' | sort | rev | cut -c 1)
|
num=$(find /dev -name 'ttyACM*' | sort | rev | cut -c 1)
|
||||||
echo com is: "$num"
|
echo com is: "$num"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
docker-compose run --rm builder
|
docker-compose run --rm builder
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
|
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
|
||||||
echo "$num"
|
echo "$num"
|
||||||
|
|
Loading…
Reference in New Issue