Exit with no error if directory absent

Explorers need to handle the case of no directory.
remotes/origin/ssh_callback
contradict 12 years ago
parent 3ff7621984
commit b772e09d53
  1. 2
      cdist/conf/type/__git/explorer/group
  2. 2
      cdist/conf/type/__git/explorer/owner

@ -2,4 +2,4 @@
destination="/$__object_id/.git"
stat --print "%G" ${destination} 2>/dev/null
stat --print "%G" ${destination} 2>/dev/null || exit 0

@ -2,4 +2,4 @@
destination="/$__object_id/.git"
stat --print "%U" ${destination} 2>/dev/null
stat --print "%U" ${destination} 2>/dev/null || exit 0

Loading…
Cancel
Save