[pitivi] build: Pass the arguments with spaces correctly when entering the sandbox



commit 4887aeb2eb108384ab1ff6bfd66a74f5d5dc2018
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri May 20 08:01:22 2016 +0200

    build: Pass the arguments with spaces correctly when entering the sandbox
    
    Differential Revision: https://phabricator.freedesktop.org/D1001

 bin/pitivi-env              |    2 +-
 build/xdg-app/enter_env     |    2 +-
 build/xdg-app/pitivi-bundle |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/bin/pitivi-env b/bin/pitivi-env
index 50d489e..fd4b0a8 100755
--- a/bin/pitivi-env
+++ b/bin/pitivi-env
@@ -28,7 +28,7 @@ alias ptvenv="$XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b"
 alias ptivi-xdg-app="$XDGAPP_ENVPATH/pitivi/bin/pitivi-xdg-app -b"
 
 echo "-> Setting up environment if needed..."
-ptvenv "echo "
+ptvenv "echo"
 if [ "$?" = "0" ];
 then
     for i in `ptvenv ls /app/bin/`;
diff --git a/build/xdg-app/enter_env b/build/xdg-app/enter_env
index c95b537..3aeff80 100755
--- a/build/xdg-app/enter_env
+++ b/build/xdg-app/enter_env
@@ -24,5 +24,5 @@ then
   cd $PITIVI_DIR
   bash --rcfile $RCFILE
 else
-  $*
+  "$@"
 fi
diff --git a/build/xdg-app/pitivi-bundle b/build/xdg-app/pitivi-bundle
index a154624..fc11847 100755
--- a/build/xdg-app/pitivi-bundle
+++ b/build/xdg-app/pitivi-bundle
@@ -367,7 +367,7 @@ then
       --env=PITIVI_DEBUG=$PITIVI_DEBUG \
       --env=PITIVI_DEVELOPMENT=1 \
       --env=GST_DEBUG_DUMP_DOT_DIR=$GST_DEBUG_DUMP_DOT_DIR \
-      $PREFIX $SCRIPTDIR/enter_env $*
+      $PREFIX $SCRIPTDIR/enter_env "$@"
 
     exit $exitcode
   fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]