From d268c0a288e93caddb727dbd7d742e8fa3e15cfc Mon Sep 17 00:00:00 2001 From: mardevour Date: Thu, 23 Jan 2025 05:57:30 +0100 Subject: [PATCH 1/2] clean up remaining git directory created on pwd on exit --- Interactive_Install.sh | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 Interactive_Install.sh diff --git a/Interactive_Install.sh b/Interactive_Install.sh old mode 100644 new mode 100755 index 83df6b8..6d77f1b --- a/Interactive_Install.sh +++ b/Interactive_Install.sh @@ -3,6 +3,9 @@ WALPAPER_DEST="/usr/share/backgrounds/Dynamic_Wallpapers" XML_DEST="/usr/share/gnome-background-properties/" GIT_URL="https://github.com/saint-13/Linux_Dynamic_Wallpapers.git/" +# clean the remaining git directory on pwd on exit +trap 'rm -rf "$PWD/Linux_Dynamic_Wallpapers"' EXIT + # Clone .git folder -> Lightweigh checkout git clone --filter=blob:none --no-checkout "$GIT_URL" @@ -75,5 +78,6 @@ while IFS= read -r to_install; do done <<< "$user_selection" echo + echo "Success !" echo "💜 Please support on https://github.com/saint-13/Linux_Dynamic_Wallpapers" From b019b59f3fafffeaa77ff324ccc69b28237689ff Mon Sep 17 00:00:00 2001 From: mardevour Date: Thu, 23 Jan 2025 06:01:02 +0100 Subject: [PATCH 2/2] updated README.md to change the recommended script so now it works --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fccc94c..d84e77b 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,8 @@ 1. Open Terminal 2. Run the following command: ``` - curl -s "https://raw.githubusercontent.com/saint-13/Linux_Dynamic_Wallpapers/main/Interactive_Install.sh" | sudo bash + curl -s "https://raw.githubusercontent.com/saint-13/Linux_Dynamic_Wallpapers/main/Interactive_Install.sh" > install.sh + sudo bash install.sh ``` 3. Select the walpapers you wish to install from the list 4. Script will download and install only selected ones