[pitivi] bin: Allow running subcommand --help in the sandbox
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] bin: Allow running subcommand --help in the sandbox
- Date: Fri, 6 May 2016 14:43:17 +0000 (UTC)
commit a5b1256ec4151c9ab333d4ce1cfa754d4df3d082
Author: Thibault Saunier <tsaunier gnome org>
Date: Fri May 6 11:39:53 2016 -0300
bin: Allow running subcommand --help in the sandbox
And show the pitivi-xdg-app help only if it is the only option specified
build/xdg-app/pitivi-bundle | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/build/xdg-app/pitivi-bundle b/build/xdg-app/pitivi-bundle
index 6683064..a154624 100755
--- a/build/xdg-app/pitivi-bundle
+++ b/build/xdg-app/pitivi-bundle
@@ -90,10 +90,6 @@ You can find more information about xdg-app at: https://wiki.gnome.org/Projects/
for i in "$@"
do
case $i in
- -h|--help)
- echo "$HELP"
- exit 0
- ;;
-d|--devel)
DEVEL=true
shift
@@ -133,6 +129,12 @@ do
esac
done
+if [ "$1" == "--help" ]
+then
+ echo "$HELP"
+ exit 0
+fi
+
which xdg-app > /dev/null 2>&1
if [ ! $? -eq 0 ]
then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]