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"
|
file="/$__object_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$file" ]
|
if [ ! -e "$file" ]
|
||||||
then
|
then
|
||||||
cat "$file"
|
|
||||||
else
|
|
||||||
echo "$file do not exist" >&2
|
echo "$file do not exist" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat "$file"
|
||||||
|
|
Loading…
Reference in a new issue