Skip to content
Snippets Groups Projects
Commit 09b92cfd authored by Otheus Shelling's avatar Otheus Shelling :ghost:
Browse files

scripting error in check_path -- falsely failed on the simlink in the case...

scripting error in check_path -- falsely failed on the simlink in the case that the ls command did NOT abort in a SIGPIPE error (as expected for small directories)
parent d34386e8
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,8 @@
test -d "$1" -a -r "$1" &&
/bin/ls -a1U "$1" |
grep -q '^\.$'
if [ $? = 141 -a "${PIPESTATUS[1]}" = 0 ]; then
if [ $? = 0 -o \( $? = 141 -a "${PIPESTATUS[1]}" = 0 \) ]; then
echo 1
else
echo $[$?==0]
echo 0
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment