Exit with no error if directory absent

Explorers need to handle the case of no directory.
This commit is contained in:
contradict 2013-01-30 00:48:08 -08:00
parent 3ff7621984
commit b772e09d53
2 changed files with 2 additions and 2 deletions

View file

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

View file

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