Fix incorrect variable handling

This commit is contained in:
Manuel Thalmann 2023-05-04 19:47:45 +02:00
parent e8a85b2b50
commit 14e07a15b4

View file

@ -4,7 +4,7 @@ NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
# Elevate script
if [ ! "$UID" -eq 0 ]
then
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" sudo bash "$BASH_SOURCE" "$USER";
sudo NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" bash "$BASH_SOURCE" "$USER";
else
homeDir="$(sudo -u "$1" bash -c 'realpath ~')";
fontFileBaseName="Caskaydia Cove Regular Nerd Font Complete.otf";