Do not create bin subfolder in HOME directory.
parent
8afdd68cab
commit
371fbe2d55
|
@ -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
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue