mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-01 11:49:38 +02:00
Pmodules/libpmodules.bash:
- set variable 'sbindir' if not set
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user