Skip to content

Commit

Permalink
functions separate copyJoininboxScripts
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Feb 9, 2021
1 parent 65ddd76 commit 058b1f5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ function installJoinMarket() {
echo "# installed JoinMarket $JMVersion"
}

# copyJoininboxScripts
function copyJoininboxScripts()) {
echo "# Copying the scripts in place"
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/*.* /home/joinmarket/
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/.* /home/joinmarket/ 2>/dev/null
sudo -u joinmarket chmod +x /home/joinmarket/*.sh
}

# updateJoininBox <reset|commit>
function updateJoininBox() {
cd /home/joinmarket
Expand Down Expand Up @@ -261,10 +269,7 @@ function updateJoininBox() {
fi
sudo -u joinmarket git reset --hard $TAG
echo "# Updated to version" $TAG
echo "# Copying the scripts in place"
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/*.* /home/joinmarket/
sudo -u joinmarket cp /home/joinmarket/joininbox/scripts/.* /home/joinmarket/ 2>/dev/null
sudo -u joinmarket chmod +x /home/joinmarket/*.sh
copyJoininboxScripts
}

function setIRCtoTor() {
Expand Down

0 comments on commit 058b1f5

Please sign in to comment.