Browse Source

allow empty file

ander/__sed
ander 1 year ago
parent
commit
d7fdc8006f
No known key found for this signature in database
GPG Key ID: A2971E562D618F3
  1. 8
      cdist/conf/type/__sed/explorer/file

8
cdist/conf/type/__sed/explorer/file vendored

@ -9,13 +9,7 @@ fi
if [ -f "$file" ]
then
if [ -s "$file" ]
then
cat "$file"
else
echo "$file is empty" >&2
exit 1
fi
cat "$file"
else
echo "$file do not exist" >&2
exit 1

Loading…
Cancel
Save