Run nextcloud sync in same terminal

This commit is contained in:
Manuel Thalmann 2023-04-05 11:00:26 +02:00
parent 203a8df564
commit e26f138210

View file

@ -4,10 +4,16 @@ INSTALL_FONTS="${INSTALL_FONTS}";
dir="${BASH_SOURCE%/*}"; dir="${BASH_SOURCE%/*}";
pushd "$dir" > /dev/null; pushd "$dir" > /dev/null;
if [ ! -z "$INSTALL_FONTS" ]
then
# Microsoft Windows Fonts
source "../Fonts/MicrosoftFonts/install.sh";
fi;
# Sync clouds # Sync clouds
{ {
pushd "$dir" > /dev/null; 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" ] if [ ! -z "$INSTALL_FONTS" ]
then then
@ -20,10 +26,4 @@ pushd "$dir" > /dev/null;
popd > /dev/null; popd > /dev/null;
} & } &
if [ ! -z "$INSTALL_FONTS" ]
then
# Microsoft Windows Fonts
source "../Fonts/MicrosoftFonts/install.sh";
fi;
popd > /dev/null; popd > /dev/null;