1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00

Adjustment on download sequence

This commit is contained in:
polytan02 2016-12-24 14:00:03 +00:00
parent 6985d5a551
commit b2b96f91eb
2 changed files with 8 additions and 6 deletions

View file

@ -101,14 +101,15 @@ sudo mkdir -p $final_path
# We download the sources and go to latest revision
sudo rm -rf ./gitsources
sudo mkdir gitsources
sudo chmod 777 gitsources
# We get the repository address
URL=`sudo cat ../sources/source_url`;
sudo git clone $URL gitsources
# We reset to the latest known revision
sudo cd gitsources
cd gitsources
SHA1=`sudo cat ../sources/source_sha1`;
git reset --hard $SHA1
sudo cd ..
sudo git reset --hard $SHA1
cd ..
# We copy the sources to the destination
sudo cp -a gitsources/* $final_path

View file

@ -34,14 +34,15 @@ sudo mkdir -p $final_path
# We download the sources and go to latest revision
sudo rm -rf ./gitsources
sudo mkdir gitsources
sudo chmod 777 gitsources
# We get the repository address
URL=`sudo cat ../sources/source_url`;
sudo git clone $URL gitsources
# We reset to the latest known revision
sudo cd gitsources
cd gitsources
SHA1=`sudo cat ../sources/source_sha1`;
git reset --hard $SHA1
sudo cd ..
sudo git reset --hard $SHA1
cd ..
# Set permissions
sudo chmod 775 -R $final_path