mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-01-07 03:19:40 +00:00
update: pull if baasicswap-bash repo exists
This commit is contained in:
parent
c31fb46387
commit
4b52312f8f
1 changed files with 7 additions and 2 deletions
|
@ -32,8 +32,13 @@ else
|
||||||
|
|
||||||
# Download updated scripts
|
# Download updated scripts
|
||||||
echo "Updating basicswap-bash scripts" && sleep 1
|
echo "Updating basicswap-bash scripts" && sleep 1
|
||||||
git clone https://github.com/nahuhh/basicswap-bash || { $red"Failed to clone repo. Cancelling update."; exit; }
|
if [[ -d basicswap-bash ]]; then
|
||||||
cd basicswap-bash
|
cd basicswap-bash
|
||||||
|
git pull || { $red"Failed to clone repo. Cancelling update.\n"; exit; }
|
||||||
|
else
|
||||||
|
git clone https://github.com/nahuhh/basicswap-bash || { $red"Failed to clone repo. Cancelling update.\n"; exit; }
|
||||||
|
cd basicswap-bash
|
||||||
|
fi
|
||||||
|
|
||||||
# Move scripts
|
# Move scripts
|
||||||
rm -rf $HOME/.local/bin/bsx
|
rm -rf $HOME/.local/bin/bsx
|
||||||
|
|
Loading…
Reference in a new issue