diff --git a/scripts/copy_to_home.sh b/scripts/copy_to_home.sh index 3788f4e2..86746077 100644 --- a/scripts/copy_to_home.sh +++ b/scripts/copy_to_home.sh @@ -4,4 +4,9 @@ # Copyright (c) 2023, DyssolTEC GmbH. All rights reserved. # This file is part of Dyssol. See LICENSE file for license information. -rsync -av --exclude=.git --exclude=.vs --exclude=build --exclude=Documentation/sources --exclude=DyssolConsole/cache --exclude=DyssolInstallers/Compiler --exclude=DyssolInstallers/Installers --exclude=ExternalLibraries --exclude=install --exclude=Win32 --exclude=x64 /mnt/d/Codes/dyssol ~/ \ No newline at end of file +# Absolute path to this script, e.g. /home/user/bin/script.sh +SCRIPT=$(readlink -f "$0") +# Absolute path this script is in, thus /home/user/bin +SCRIPTPATH=$(dirname "$SCRIPT") +# Run copy +rsync -av --exclude=.git --exclude=.vs --exclude=build --exclude=Documentation/sources --exclude=DyssolConsole/cache --exclude=DyssolInstallers/Compiler --exclude=DyssolInstallers/Installers --exclude=ExternalLibraries --exclude=install --exclude=Win32 --exclude=x64 ${SCRIPTPATH}/../ ~/dyssol/ \ No newline at end of file