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

Further silence git warnings

This commit is contained in:
tituspijean 2022-03-21 20:41:22 +01:00
parent 91ffa1ed4f
commit b467fd9d8c
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -87,7 +87,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
if [ `cd $final_path && git rev-parse --is-inside-work-tree` ];
if [ `cd $final_path && git rev-parse --is-inside-work-tree --quiet 2>/dev/null` ];
then
pushd "$final_path"
if [ $update -eq 1 ]
@ -119,12 +119,9 @@ then
# Download, check integrity, uncompress and patch the source from app.src
if [ $update -eq 1 ]
then
git clone -c advice.detachedHead=false --quiet -b $latest_tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path
git clone -c advice.detachedHead=false --quiet -b $latest_tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path
else
git clone -c advice.detachedHead=false --quiet -b $tag --depth 1 https://github.com/firefly-iii/firefly-iii.git $final_path
fi
ynh_secure_remove bootstrap/cache/*