Merge with Achims version
This commit is contained in:
@@ -28,12 +28,6 @@ debug() {
|
|||||||
die() {
|
die() {
|
||||||
local -ri ec=$1
|
local -ri ec=$1
|
||||||
shift
|
shift
|
||||||
local cout
|
|
||||||
if (( ec == 0)); then
|
|
||||||
cout='1'
|
|
||||||
else
|
|
||||||
cout='2'
|
|
||||||
fi
|
|
||||||
if [[ -n $@ ]]; then
|
if [[ -n $@ ]]; then
|
||||||
local -r fmt=$1
|
local -r fmt=$1
|
||||||
shift
|
shift
|
||||||
@@ -52,7 +46,7 @@ get_YN_answer() {
|
|||||||
local ans
|
local ans
|
||||||
read -p "${prompt}" ans
|
read -p "${prompt}" ans
|
||||||
case ${ans} in
|
case ${ans} in
|
||||||
y|Y )
|
y|Y )
|
||||||
return 0;;
|
return 0;;
|
||||||
* )
|
* )
|
||||||
return 1;;
|
return 1;;
|
||||||
@@ -90,6 +84,7 @@ initialized properly!"
|
|||||||
|
|
||||||
check_pmodules_directories() {
|
check_pmodules_directories() {
|
||||||
local -r src_prefix="$1"
|
local -r src_prefix="$1"
|
||||||
|
|
||||||
[[ -d "${src_prefix}" ]] &&
|
[[ -d "${src_prefix}" ]] &&
|
||||||
[[ -d "${src_prefix}/${PSI_CONFIG_DIR}" ]] &&
|
[[ -d "${src_prefix}/${PSI_CONFIG_DIR}" ]] &&
|
||||||
[[ -d "${src_prefix}/${PSI_MODULES_ROOT}" ]] &&
|
[[ -d "${src_prefix}/${PSI_MODULES_ROOT}" ]] &&
|
||||||
|
|||||||
Reference in New Issue
Block a user