Browse Source

use -e

ander/__sed
Ander Punnar 4 months ago
parent
commit
90488fcebc
No known key found for this signature in database GPG Key ID: A2971E562D618F3
  1. 6
      cdist/conf/type/__sed/explorer/file

6
cdist/conf/type/__sed/explorer/file

@ -7,10 +7,10 @@ else
file="/$__object_id"
fi
if [ -f "$file" ]
if [ ! -e "$file" ]
then
cat "$file"
else
echo "$file do not exist" >&2
exit 1
fi
cat "$file"

Loading…
Cancel
Save