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 -*-
|
||||
##### Author: Travis Cross <tc@traviscross.com>
|
||||
|
||||
pwd="$(pwd)"
|
||||
ddir="debian"
|
||||
[ "${pwd##*/}" = "debian" ] && ddir="."
|
||||
ddir="."
|
||||
[ -n "${0%/*}" ] && ddir="${0%/*}"
|
||||
|
||||
err () {
|
||||
echo "$0 error: $1" >&2
|
||||
|
|
Loading…
Reference in New Issue