update bash scripts to #!/usr/bin/env bash (#268)

* update bash shebang for better compatibility including macOS

* re-build
This commit is contained in:
Andrei Radulescu
2024-08-31 20:34:25 +03:00
committed by GitHub
parent 0fcdc43248
commit 915ff5eb09
17 changed files with 23 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
DEFCONFIG=tici_defconfig

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
DEFCONFIG=tici_defconfig

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
UBUNTU_BASE_URL="http://cdimage.ubuntu.com/ubuntu-base/releases/24.04/release"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
DEVICE=${DEVICE:-comma-ethernet}

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
scp output/linux-headers*.deb comma:/tmp/
ssh comma "sudo apt install -yq /tmp/linux-headers*.deb"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
ssh tici "systemd-analyze plot > /tmp/bootchart.svg"

View File

@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# sudo apt install ncdu

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"/..
TOOLS=$ROOT_DIR/tools

View File

@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Make sure we're in the correct directory
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
# Make sure we're in the correct directory
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
docker run -it --rm agnos-builder:latest /bin/bash

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"

View File

@@ -1,4 +1,5 @@
#!/bin/bash -e
#!/usr/bin/env bash
set -e
git lfs &> /dev/null || {
echo "ERROR: git lfs not installed"