mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 21:32:48 +00:00
4aa7fabcd5
chore: Additional bash script cleanup
12 lines
343 B
Bash
Executable File
12 lines
343 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
|
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
|
|
|
|
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
|
|
SUDO_ASKPASS='/usr/bin/ksshaskpass'
|
|
elif [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
|
SUDO_ASKPASS='/usr/libexec/openssh/gnome-ssh-askpass'
|
|
fi
|
|
export SUDO_ASKPASS
|