fix: improve installation permissions handling and file extension checking

This commit is contained in:
2026-01-15 10:00:35 +01:00
parent 6cc27448da
commit 3bfc401cb5
2 changed files with 7 additions and 8 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ cmake -S "$path/.." -B "$path/../build" \
cmake --build "$path/../build" --config Release -- -j"$(nproc)"
if [ ! -w "$prefix" ] && [ "$(id -u)" -ne 0 ]; then
sudo cmake --install "$path/../build" --config Release
echo "Elevated permissions are required to install to $prefix, enter root's password to continue."
su -m -c "cmake --install '$path/../build' --config Release" root
else
cmake --install "$path/../build" --config Release
fi