Skip to content

Commit

Permalink
test if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Oct 29, 2015
1 parent b1e37f0 commit e8c57e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subroutines
Expand Up @@ -1031,7 +1031,7 @@ task_repository () {
:
# no need for copy since both are pointing to the same file
else
cp -v /etc/resolv.conf $FAI_ROOT/etc
[ -f /etc/resolv.conf ] && cp -v /etc/resolv.conf $FAI_ROOT/etc
fi
fi
if ! fcopy -BMv /etc/hosts ; then
Expand Down

0 comments on commit e8c57e0

Please sign in to comment.