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:
parent
6985d5a551
commit
b2b96f91eb
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue