Do not create bin subfolder in HOME directory.
parent
8afdd68cab
commit
371fbe2d55
|
@ -3,7 +3,7 @@
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```sh
|
```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
|
chmod +x install.sh
|
||||||
./install.sh
|
./install.sh
|
||||||
rm install.sh
|
rm install.sh
|
||||||
|
|
|
@ -82,13 +82,13 @@ fi
|
||||||
fi
|
fi
|
||||||
git submodule update --init
|
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
|
# Use new profile update script instead
|
||||||
# Putting exit 0 on same line here for security since the old script
|
# Putting exit 0 on same line here for security since the old script
|
||||||
# will be deleted.
|
# will be deleted.
|
||||||
echo "Using newer profile update script."
|
echo "Using newer profile update script."
|
||||||
export _CHECKOUT_DONE=1
|
export _CHECKOUT_DONE=1
|
||||||
exec home/bin/update-profile
|
exec home/dotfiles/local/bin/update-profile
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -98,11 +98,11 @@ fi
|
||||||
|
|
||||||
echo "Running profile installation..."
|
echo "Running profile installation..."
|
||||||
cd ..
|
cd ..
|
||||||
if [ -f "${HOME}/bin/update-profile" ]; then
|
if [ -f "${HOME}/.local/bin/update-profile" ]; then
|
||||||
mv "${HOME}/bin/update-profile" "${HOME}/bin/update-profile.old"
|
mv "${HOME}/.local/bin/update-profile" "${HOME}/bin/update-profile.old"
|
||||||
fi
|
fi
|
||||||
./install.sh
|
./install.sh
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
rm -f "${HOME}/bin/update-profile.old"
|
rm -f "${HOME}/.local/bin/update-profile.old"
|
Loading…
Reference in New Issue