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:
Dom Rodriguez 2023-05-19 00:45:38 +01:00
parent 185cc2bc29
commit 8e3ac20145
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43
7 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
BKPPATH="firmware-backups"

View File

@ -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"

View File

@ -1,3 +1,3 @@
#!/bin/sh
#!/usr/bin/env sh
make -j "$(nproc)" T=open_source DEBUG=1 clean

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
txt_to_wav() {
hash="$(md5sum "$1" | cut -d ' ' -f 1)"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
num=$(find /dev -name 'ttyACM*' | sort | rev | cut -c 1)
echo com is: "$num"

View File

@ -1,2 +1,2 @@
#!/bin/sh
#!/usr/bin/env sh
docker-compose run --rm builder

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
echo "$num"