1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Update scripts/upgrade

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
yalh76 2021-06-10 22:46:46 +02:00 committed by GitHub
parent 26bd8b3458
commit d049044604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,8 @@ then
ynh_script_progression --message="Upgrading source files..." ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then if git -C "$final_path" rev-parse --is-inside-work-tree` >/dev/null 2>/dev/null
then
pushd "$final_path" pushd "$final_path"
git fetch git fetch
git checkout tags/$version git checkout tags/$version