[pitivi] flatpak: Fix pitivi repo URL check
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] flatpak: Fix pitivi repo URL check
- Date: Thu, 7 Jul 2016 20:58:47 +0000 (UTC)
commit e269afb00e7d342d634477bcee151a2b2b00ca8d
Author: Thibault Saunier <tsaunier gnome org>
Date: Thu Jul 7 16:56:10 2016 -0400
flatpak: Fix pitivi repo URL check
build/flatpak/pitivi-flatpak | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/build/flatpak/pitivi-flatpak b/build/flatpak/pitivi-flatpak
index 9a54bea..25d635f 100755
--- a/build/flatpak/pitivi-flatpak
+++ b/build/flatpak/pitivi-flatpak
@@ -68,8 +68,9 @@ fi
# Computation of actual variable values
APPLICATION_REPO_NAME=`$FLATPAK_REMOTE_LIST --user -d | grep "$APPLICATION_FLATPAK_REPO" |awk '{ print $1 }'`
$FLATPAK remote-list --user |grep $APPLICATION_DEFAULT_REPO_NAME > /dev/null 2>&1
+res=$?
# Update remote URL if needed
-if [ $? != 0 ] & [ -z $APPLICATION_REPO_NAME ]
+if [ $res != 0 ] && [ -n "$APPLICATION_REPO_NAME" ]
then
echo "-> Setting $APPLICATION_DEFAULT_REPO_NAME URL to $APPLICATION_FLATPAK_REPO"
$FLATPAK remote-modify --user $APPLICATION_DEFAULT_REPO_NAME --url=$APPLICATION_FLATPAK_REPO
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]