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

9 lines
112 B
Plaintext
Raw Normal View History

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