[pitivi] bin: Source the completions only when present
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] bin: Source the completions only when present
- Date: Mon, 11 Apr 2016 11:28:53 +0000 (UTC)
commit d95c759957ea615e8ebe3b1e5882d93d13d80322
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Apr 11 13:27:58 2016 +0200
bin: Source the completions only when present
bin/pitivi-git-environment.sh | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/bin/pitivi-git-environment.sh b/bin/pitivi-git-environment.sh
index a35a594..5d6b7ab 100755
--- a/bin/pitivi-git-environment.sh
+++ b/bin/pitivi-git-environment.sh
@@ -519,9 +519,13 @@ if [ "$ready_to_run" = "1" ]; then
else
function generate_path_and_completion_calls {
echo "export PATH=$EXTRA_PATH:\$PATH"
- echo "source $MYPITIVI/gstreamer/data/completions/gst-launch-1.0"
- echo "source $MYPITIVI/gstreamer/data/completions/gst-inspect-1.0"
- echo "source $MYPITIVI/gst-editing-services/data/completions/ges-launch-1.0"
+ if [[ -d $MYPITIVI/gstreamer ]]; then
+ echo "source $MYPITIVI/gstreamer/data/completions/gst-launch-1.0"
+ echo "source $MYPITIVI/gstreamer/data/completions/gst-inspect-1.0"
+ fi
+ if [[ -d $MYPITIVI/gst-editing-services ]]; then
+ echo "source $MYPITIVI/gst-editing-services/data/completions/ges-launch-1.0"
+ fi
}
cd $PITIVI/pitivi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]