mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 03:23:29 +01:00
More robust zcat
This commit is contained in:
parent
c41737b494
commit
c0e76b8f26
3
bin/zcat
3
bin/zcat
@ -16,7 +16,8 @@ with gzip.open("$1", "rt") as f:
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
command=$(which -a zcat | grep -v 'qp2/bin/' | head -1)
|
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||||
|
command=$(which -a zcat | grep -v "$SCRIPTPATH/" | head -1)
|
||||||
exec $command $@
|
exec $command $@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user