Set default value of NEXTCLOUD_DIR

This commit is contained in:
Manuel Thalmann 2023-05-03 18:34:30 +02:00
commit b358e8a07f
4 changed files with 7 additions and 7 deletions
scripts/Common/Config/UserProfile

View file

@ -1,5 +1,5 @@
#!/bin/bash
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR:Nextcloud}";
INSTALL_FONTS="${INSTALL_FONTS}";
dir="${BASH_SOURCE%/*}";
pushd "$dir" > /dev/null;
@ -11,15 +11,15 @@ then
fi;
# Sync clouds
. "../rclone/InstallSync.sh" nextcloud "$NEXTCLOUD_DIR";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" . "../rclone/InstallSync.sh" nextcloud "$NEXTCLOUD_DIR";
if [ ! -z "$INSTALL_FONTS" ]
then
# Install fonts
source "../Fonts/NerdFont/install.sh";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" source "../Fonts/NerdFont/install.sh";
fi;
source "../bash/oh-my-posh.sh";
source "../Oh My Posh/install.sh";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" source "../Oh My Posh/install.sh";
popd > /dev/null;