Skip to content

Commit

Permalink
Merge pull request #3 from zaki50/symlink
Browse files Browse the repository at this point in the history
adbp や pidcatp に対して symlink を作成して使用することが出来るようにしました。
  • Loading branch information
tomorrowkey committed Oct 29, 2014
2 parents 82d64a5 + 4c44ff6 commit 1f76da0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions bin/adbp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

SCRIPT=`dirname $0`/adb_peco.sh
$SCRIPT adb "$@"
SCRIPT="$0"

if [ -n "`readlink "$SCRIPT"`" ] ; then
SCRIPT="`readlink "$SCRIPT"`"
fi

SCRIPT="`dirname "$SCRIPT"`/adb_peco.sh"
"$SCRIPT" adb "$@"
10 changes: 8 additions & 2 deletions bin/pidcatp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

SCRIPT=`dirname $0`/adb_peco.sh
$SCRIPT pidcat "$@"
SCRIPT="$0"

if [ -n "`readlink "$SCRIPT"`" ] ; then
SCRIPT="`readlink "$SCRIPT"`"
fi

SCRIPT="`dirname "$SCRIPT"`/adb_peco.sh"
"$SCRIPT" pidcat "$@"

0 comments on commit 1f76da0

Please sign in to comment.