summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshingil.kang <shingil.kang@samsung.com>2014-08-25 16:42:47 +0900
committershingil.kang <shingil.kang@samsung.com>2014-09-02 02:02:58 +0900
commit9ce758cd778eda13b04e584e591713c0a9571364 (patch)
treeb69ce84c0610935d868a7b7b58ac610f1415138d
parent22e80f102354d722beb0c79391182827f1438034 (diff)
downloadsdb-9ce758cd778eda13b04e584e591713c0a9571364.tar.gz
sdb-9ce758cd778eda13b04e584e591713c0a9571364.tar.bz2
sdb-9ce758cd778eda13b04e584e591713c0a9571364.zip
SDB: Enabled auto-complete when sdb is located in PATH
Change-Id: I4778fe090590800af390ab3b45f5fb1dd641b9e5 Signed-off-by: shingil.kang <shingil.kang@samsung.com>
-rw-r--r--package/.sdb-completion.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/.sdb-completion.bash b/package/.sdb-completion.bash
index 7623a06..addcbc6 100644
--- a/package/.sdb-completion.bash
+++ b/package/.sdb-completion.bash
@@ -8,7 +8,8 @@ _sdb()
COMPREPLY=()
- if [ ! -f ${SDB_PATH} ];
+ IS_SDB_IN_PATH=`which sdb`
+ if [ ! -f ${SDB_PATH} ] && [ -z ${IS_SDB_IN_PATH} ];
then
return 0;
fi