mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 12:04:59 +02:00
@eshanized: push via script
This commit is contained in:
15
common/snigdhaos-libs/install-package
Normal file
15
common/snigdhaos-libs/install-package
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SNIGDHAOSLIB_GUI="${SNIGDHAOSLIB_GUI:-true}"
|
||||||
|
|
||||||
|
if [ -z "$DISPLAY" ]; then
|
||||||
|
SNIGDHAOSLIB_GUI=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $EUID -ne 0 ]] && [ "$SNIGDHAOSLIB_GUI" == "true" ]; then
|
||||||
|
exec pkexec /usr/lib/snigdhaos/install-package "$@"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
sudo pacman -S --noconfirm "$@"
|
Reference in New Issue
Block a user