summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-07-17 11:23:27 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-07-17 11:23:27 +0000
commit314f920c48ad5ea274003f135b8130f7fa0abb76 (patch)
treef72782d097a90ddc1aed99d522e1b42c43ca1662 /bin
parente9e20ed87b98b947904b4a1778334d07e9bf21ef (diff)
downloadptxdist-314f920c48ad5ea274003f135b8130f7fa0abb76.tar.gz
ptxdist-314f920c48ad5ea274003f135b8130f7fa0abb76.tar.xz
[ptxdist] remove "." from the path instead of bailing out
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10970 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist13
1 files changed, 2 insertions, 11 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 2a7af6b18..7dcc15fd9 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -162,19 +162,10 @@ check_uid() {
#
-# check if "." is in the PATH
+# remove "." from the PATH
#
check_path() {
- case "${PATH}" in
- .:*)
- echo
- echo "${PROMPT}error: '.' in your \$PATH detected, please remove it!"
- echo
- exit 1
- ;;
- *)
- ;;
- esac
+ PATH="$(echo $PATH | sed -e "s/:\.$//" -e "s/^\.://" -e "s/:\.://")"
}