From 7076964a4c6d7e3c31b1792a977d1e6804a8e07f Mon Sep 17 00:00:00 2001 From: David Wronek Date: Mon, 6 Oct 2025 17:24:39 +0200 Subject: [PATCH 1/2] AIK: Use /usr/bin/env for shebang Improves compatibility for non-FHS systems. Signed-off-by: David Wronek --- cleanup.sh | 2 +- repackimg.sh | 2 +- unpackimg.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cleanup.sh b/cleanup.sh index c81de15..159d04c 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # AIK-Linux/cleanup: reset working directory # osm0sis @ xda-developers diff --git a/repackimg.sh b/repackimg.sh index d1ad88c..8465906 100755 --- a/repackimg.sh +++ b/repackimg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # AIK-Linux/repackimg: repack ramdisk and build image # osm0sis @ xda-developers diff --git a/unpackimg.sh b/unpackimg.sh index 0ca3764..9b74f3d 100755 --- a/unpackimg.sh +++ b/unpackimg.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # AIK-Linux/unpackimg: split image and unpack ramdisk # osm0sis @ xda-developers From 1a404a4d4e6632f83286f5b4ccc61fbbac9925e3 Mon Sep 17 00:00:00 2001 From: David Wronek Date: Mon, 6 Oct 2025 18:35:33 +0200 Subject: [PATCH 2/2] AIK: Small code style fix Move `/` outside the quotes like in the other scripts. Signed-off-by: David Wronek --- repackimg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repackimg.sh b/repackimg.sh index 8465906..185a180 100755 --- a/repackimg.sh +++ b/repackimg.sh @@ -49,7 +49,7 @@ case $1 in --local) shift;; *) cd "$aik";; esac; -chmod -R 755 "$bin" "$aik/"*.sh; +chmod -R 755 "$bin" "$aik"/*.sh; chmod 644 "$bin/magic" "$bin/androidbootimg.magic" "$bin/androidsign.magic" "$bin/boot_signer.jar" "$bin/avb/"* "$bin/chromeos/"*; if [ -z "$(ls split_img/* 2>/dev/null)" -o ! -e ramdisk ]; then