Run nextcloud sync in same terminal

This commit is contained in:
Manuel Thalmann 2023-04-05 11:00:26 +02:00
parent d0da5e8eb3
commit 445cb1ead6

View file

@ -4,10 +4,16 @@ INSTALL_FONTS="${INSTALL_FONTS}";
dir="${BASH_SOURCE%/*}";
pushd "$dir" > /dev/null;
if [ ! -z "$INSTALL_FONTS" ]
then
# Microsoft Windows Fonts
source "../Fonts/MicrosoftFonts/install.sh";
fi;
# Sync clouds
{
pushd "$dir" > /dev/null;
gnome-terminal --tab --wait -- /bin/bash "../rclone/InstallSync.sh" nextcloud "$NEXTCLOUD_DIR";
. "../rclone/InstallSync.sh" nextcloud "$NEXTCLOUD_DIR";
if [ ! -z "$INSTALL_FONTS" ]
then
@ -20,10 +26,4 @@ pushd "$dir" > /dev/null;
popd > /dev/null;
} &
if [ ! -z "$INSTALL_FONTS" ]
then
# Microsoft Windows Fonts
source "../Fonts/MicrosoftFonts/install.sh";
fi;
popd > /dev/null;