Skip to content

Commit

Permalink
update bash shebang for better compatibility including macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andiradulescu committed Jul 28, 2024
1 parent 0262fe7 commit b682e68
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build_bootloader.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

# Get directories and make sure we're in the correct spot to start the build
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion build_kernel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

DEFCONFIG=tici_defconfig
Expand Down
2 changes: 1 addition & 1 deletion build_kernel_headers.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

DEFCONFIG=tici_defconfig
Expand Down
2 changes: 1 addition & 1 deletion build_system.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

UBUNTU_BASE_URL="http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release"
Expand Down
2 changes: 1 addition & 1 deletion flash_all.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion flash_bootloader.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

GREEN="\033[0;32m"
NO_COLOR='\033[0m'
Expand Down
2 changes: 1 addition & 1 deletion flash_kernel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

GREEN="\033[0;32m"
Expand Down
2 changes: 1 addition & 1 deletion flash_system.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion internal/build_and_package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR/..
Expand Down
2 changes: 1 addition & 1 deletion internal/ota_push.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

# Make sure we're in the correct directory
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion internal/pull_ota.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

# Make sure we're in the correct directory
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion load_kernel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e
cd "$(dirname "$0")"

DEVICE=${DEVICE:-comma-ethernet}
Expand Down
2 changes: 1 addition & 1 deletion load_kernel_headers.sh
Original file line number Diff line number Diff line change
@@ -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"

2 changes: 1 addition & 1 deletion scripts/bootchart.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

ssh tici "systemd-analyze plot > /tmp/bootchart.svg"
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-space.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

# sudo apt install ncdu

Expand Down
2 changes: 1 addition & 1 deletion scripts/kernel_faddr2line.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"/..
TOOLS=$ROOT_DIR/tools
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-on-device.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/bin/env bash
set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion scripts/shell.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
docker run -it --rm agnos-builder:latest /bin/bash
2 changes: 1 addition & 1 deletion tools/edl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
Expand Down
2 changes: 1 addition & 1 deletion tools/extract_tools.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash -e

git lfs &> /dev/null || {
echo "ERROR: git lfs not installed"
Expand Down

0 comments on commit b682e68

Please sign in to comment.