mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-12-06 08:03:50 +01:00
⚡️ perf: improve with command
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
if [ $(which pkexec) ]; then
|
||||
pkexec --disable-internal-agent "/usr/bin/calamares" "$@"
|
||||
|
||||
# Check if pkexec exists and is executable
|
||||
if command -v pkexec &>/dev/null; then
|
||||
# Use pkexec to run calamares with administrative privileges
|
||||
pkexec --disable-internal-agent /usr/bin/calamares "$@"
|
||||
else
|
||||
# Fallback to running calamares without administrative privileges
|
||||
/usr/bin/calamares "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user