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
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
|
||||
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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
txt_to_wav() {
|
||||
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)
|
||||
echo com is: "$num"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
docker-compose run --rm builder
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
|
||||
echo "$num"
|
||||
|
|
Loading…
Reference in New Issue