mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-15 18:43:54 +01:00
libstd.bash: get_abspath(): do not test whether the file is readable
This commit is contained in:
1 parent
e230fbce3a
commit
f3921e3014
1 file changed
+1
-1
@@ -57,7 +57,7 @@ std::get_YN_answer() {
|
||||
# $1: filename
|
||||
std::get_abspath() {
|
||||
local -r fname=$1
|
||||
[[ -r "${fname}" ]] || return 1
|
||||
#[[ -r "${fname}" ]] || return 1
|
||||
if [[ -d ${fname} ]]; then
|
||||
echo $(cd "${fname}" && pwd)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user