febootstrap 2.x does not return valid exit code
[febootstrap.git] / febootstrap.sh
index 2965a7e..c992ce4 100755 (executable)
@@ -238,8 +238,12 @@ else
     run_yum "${packages[@]}"
 fi
 
+r=$?
+
 # Clean up the yum repository.
 if [ "$clean" = "yes" ]; then
     febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap
     febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap-updates
 fi
+
+exit $r