From 0910f4d18d689f56dd96b4f06fc1441711e1c4e0 Mon Sep 17 00:00:00 2001 From: archos Date: Wed, 1 May 2024 11:39:43 +0200 Subject: [PATCH] =?UTF-8?q?opraven=20skript=20pro=20p=C5=99esun=20konfigur?= =?UTF-8?q?a=C4=8Dn=C3=ADch=20soubor=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- move_config_files.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/move_config_files.sh b/move_config_files.sh index 996fe35..502ec20 100644 --- a/move_config_files.sh +++ b/move_config_files.sh @@ -1,16 +1,16 @@ #!/bin/bash ################################################################################################################## # Written to be used on 64 bits computers -# Author : Archos -# Website : https://arch-linux.cz +# Author : Archos +# Website : https://arch-linux.cz ################################################################################################################## ################################################################################################################## # # PEČLIVĚ SKRIPT ZKONTROLUJTE. SPUŠTĚNÍ JE NA VAŠE VLASTNÍ RIZIKO. # ################################################################################################################## -# Definice cesty k repozitáři a domovského adresáře -REPO_PATH="/path/to/cloned/repository" +# Dynamické určení cesty k repozitáři a domovského adresáře +REPO_PATH=$(dirname "$0") HOME_PATH="$HOME" # Funkce pro kopírování souborů @@ -33,3 +33,4 @@ copy_files "$REPO_PATH/.config/rofi" "$HOME_PATH/.config/rofi" copy_files "$REPO_PATH/.config/xfce4/terminal" "$HOME_PATH/.config/xfce4/terminal" echo "Konfigurační soubory byly úspěšně přesunuty." +