From 371fbe2d55e6685da15fd445e89add7498dfc873 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Wed, 9 Oct 2019 14:39:02 +0200 Subject: [PATCH] Do not create bin subfolder in HOME directory. --- README.md | 2 +- home/{ => dotfiles/local}/bin/update-profile | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename home/{ => dotfiles/local}/bin/update-profile (87%) diff --git a/README.md b/README.md index b0b5159..0700be2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Installation ```sh -curl -vLo install.sh https://git.icedream.tech/icedream/profile/raw/branch/master/home/bin/update-profile +curl -vLo install.sh https://git.icedream.tech/icedream/profile/raw/branch/master/home/dotfiles/local/bin/update-profile chmod +x install.sh ./install.sh rm install.sh diff --git a/home/bin/update-profile b/home/dotfiles/local/bin/update-profile similarity index 87% rename from home/bin/update-profile rename to home/dotfiles/local/bin/update-profile index 122909e..31d5e7f 100755 --- a/home/bin/update-profile +++ b/home/dotfiles/local/bin/update-profile @@ -82,13 +82,13 @@ fi fi git submodule update --init - if file_changed "${HOME}/bin/update-profile" "home/bin/update-profile"; then + if file_changed "${HOME}/.local/bin/update-profile" "home/dotfiles/local/bin/update-profile"; then # Use new profile update script instead # Putting exit 0 on same line here for security since the old script # will be deleted. echo "Using newer profile update script." export _CHECKOUT_DONE=1 - exec home/bin/update-profile + exec home/dotfiles/local/bin/update-profile fi fi @@ -98,11 +98,11 @@ fi echo "Running profile installation..." cd .. - if [ -f "${HOME}/bin/update-profile" ]; then - mv "${HOME}/bin/update-profile" "${HOME}/bin/update-profile.old" + if [ -f "${HOME}/.local/bin/update-profile" ]; then + mv "${HOME}/.local/bin/update-profile" "${HOME}/bin/update-profile.old" fi ./install.sh ) -rm -f "${HOME}/bin/update-profile.old" +rm -f "${HOME}/.local/bin/update-profile.old"