aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.bash
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-18 21:02:59 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-18 21:02:59 +0200
commit8d61ae0b759b075d9b903e1ae5069430a66d8a92 (patch)
tree6762e8920f2dd9169a7c72975d9729a27831b0c5 /src/argparser.bash
parentm (diff)
downloadargparser-8d61ae0b759b075d9b903e1ae5069430a66d8a92.tar.gz
argparser-8d61ae0b759b075d9b903e1ae5069430a66d8a92.tar.bz2
argparser-8d61ae0b759b075d9b903e1ae5069430a66d8a92.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.bash')
-rw-r--r--src/argparser.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argparser.bash b/src/argparser.bash
index ba9529c..c4f306b 100644
--- a/src/argparser.bash
+++ b/src/argparser.bash
@@ -133,7 +133,7 @@ function args_dispose
function args_parent_name
{
local pid=$$ lvl=$1 found=0 line arg
- while (( $lvl > 1 )) && [ $found = 0 ]; do
+ while (( $lvl > 0 )) && [ $found = 0 ]; do
while read line; do
if [ "${line:5}" = "PPid:" ]; then
line="${line:5}"