Merge pull request #54 from MultiBuds/use-usr-bin-env-for-scripts

refactor(scripts): Use `#!/usr/bin/env` as part of shebang
This commit is contained in:
Ben V. Brown 2023-05-19 10:11:49 +10:00 committed by GitHub
commit 7b19212153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
BKPPATH="firmware-backups" 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 if make -j "$(nproc)" T=open_source DEBUG=1 >log.txt 2>&1; then
echo "build success" echo "build success"

View File

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

View File

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

View File

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

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/usr/bin/env sh
docker-compose run --rm builder 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) num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
echo "$num" echo "$num"