mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-12-06 16:03:52 +01:00
⚡️ perf: improve with command
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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
|
else
|
||||||
|
# Fallback to running calamares without administrative privileges
|
||||||
/usr/bin/calamares "$@"
|
/usr/bin/calamares "$@"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user