forked from ungleich-public/cdist
use -e
This commit is contained in:
parent
0f6e48dbc6
commit
90488fcebc
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue