RJ Trujillo 019704d757 fix(image-info): Don't wrap identifiers in quotations
Instead of the raw key being assigned, a key wrapped in quotations was
incorrectly assigned
2023-09-22 22:56:26 -06:00

12 lines
347 B
Bash
Executable File

#!/usr/bin/env 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