From ce0eb43f6e50aac79f0918484931596ec8ef0a58 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 10 Jan 2017 17:11:14 +0100 Subject: [PATCH] Pmodules/libpmodules.bash: - set variable 'sbindir' if not set --- Pmodules/libpmodules.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Pmodules/libpmodules.bash b/Pmodules/libpmodules.bash index d124bed..e873871 100644 --- a/Pmodules/libpmodules.bash +++ b/Pmodules/libpmodules.bash @@ -1,9 +1,8 @@ #!/bin/bash -if [[ -z ${bindir} ]]; then - local bindir=$(dirname "${BASH_SOURCE}") - bindir=$(cd "${bindir}"/.. && pwd)"/bin" - sbindir=$(cd "${bindir}"/.. && pwd)"/sbin" +if [[ -z ${sbindir} ]]; then + local sbindir=$(dirname "${BASH_SOURCE}") + sbindir=$(cd "${sbindir}"/.. && pwd)"/sbin" fi pmodules::get_options() {