setup.sh: start with an empty binfolder and ensure there is no symlink or file at the path

This commit is contained in:
base47
2026-02-22 20:40:16 +01:00
parent 18f75882a4
commit 80d00f6826

View File

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