summarylogtreecommitdiffstats
path: root/gitkraken.sh
diff options
context:
space:
mode:
authorPhilipp A2019-02-26 18:18:23 +0100
committerTim Kleinschmidt2019-02-26 20:43:29 +0100
commita6a99cc5100791822b14cd7488be016ca0267618 (patch)
treebda63c6827e8dabc603c11901c4d62344419eb3b /gitkraken.sh
parent6fde8993ac8f0c36c17a14619b2c70070e272795 (diff)
downloadaur-a6a99cc5100791822b14cd7488be016ca0267618.tar.gz
allow opening paths
Diffstat (limited to 'gitkraken.sh')
-rwxr-xr-x[-rw-r--r--]gitkraken.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/gitkraken.sh b/gitkraken.sh
index 2d8e87d299d..1056b7e85b7 100644..100755
--- a/gitkraken.sh
+++ b/gitkraken.sh
@@ -1,3 +1,7 @@
-#!/bin/sh
+#!/bin/bash
-/opt/gitkraken/gitkraken "$@"
+if [[ "$#" == '1' && "${1:0:1}" != '-' ]]; then
+ exec /opt/gitkraken/gitkraken -p "$1"
+else
+ exec /opt/gitkraken/gitkraken "$@"
+fi