diff --git a/xCAT-buildkit/bin/buildkit b/xCAT-buildkit/bin/buildkit index 3f56aa8b5..75b79cdb3 100755 --- a/xCAT-buildkit/bin/buildkit +++ b/xCAT-buildkit/bin/buildkit @@ -892,6 +892,7 @@ sub kit_cleanrepo } if ( !$got_one ) { print "Kit repository $repoid does not exist.\n"; + return 1; } } if ( -d "$::workdir/rpmbuild" ) {