bash - better check for home repo status