debian: make utilities work when run from any arbitrary directory
This commit is contained in:
parent
6c7548925c
commit
38379a5f0d
|
@ -2,9 +2,8 @@
|
||||||
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
|
##### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*-
|
||||||
##### Author: Travis Cross <tc@traviscross.com>
|
##### Author: Travis Cross <tc@traviscross.com>
|
||||||
|
|
||||||
pwd="$(pwd)"
|
ddir="."
|
||||||
ddir="debian"
|
[ -n "${0%/*}" ] && ddir="${0%/*}"
|
||||||
[ "${pwd##*/}" = "debian" ] && ddir="."
|
|
||||||
|
|
||||||
err () {
|
err () {
|
||||||
echo "$0 error: $1" >&2
|
echo "$0 error: $1" >&2
|
||||||
|
|
Loading…
Reference in New Issue