cdist/cdist/conf/type/__update_alternatives/explorer/path_should_state

9 lines
116 B
Plaintext
Raw Normal View History

#!/bin/sh -e
if [ -f "$( cat "${__object:?}/parameter/path" )" ]
then
echo 'present'
else
echo 'absent'
fi