From 80d00f682627f41b32436d56d962edab2736bc28 Mon Sep 17 00:00:00 2001 From: base47 Date: Sun, 22 Feb 2026 20:40:16 +0100 Subject: [PATCH] setup.sh: start with an empty binfolder and ensure there is no symlink or file at the path --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index fceb311..ebb30bf 100755 --- a/setup.sh +++ b/setup.sh @@ -77,7 +77,8 @@ unzip -qq $batteryfolder/repo.zip -d $batteryfolder cp -r $batteryfolder/$in_zip_folder_name/* $batteryfolder rm $batteryfolder/repo.zip -echo "[ 4 ] Make sure $binfolder exists and owned by root" +echo "[ 4 ] Make sure $binfolder is recreated and owned by root" +sudo rm -rf "$binfolder" # start with an empty $binfolder and ensure there is no symlink or file at the path sudo install -d -m 755 -o root -g wheel "$binfolder" echo "[ 5 ] Install prebuilt smc binary into $binfolder"