mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-20 09:10:15 +01:00
bootstrap: Bugfix when bootstrapping single template
This commit is contained in:
@@ -430,14 +430,16 @@ bootstrap_template() {
|
||||
cp -fR "${_project}" "${bastille_templatesdir}/${_template}"
|
||||
bastille verify "${_complete_template}"
|
||||
done
|
||||
|
||||
# Remove the cloned repo
|
||||
if [ -n "${_user}" ]; then
|
||||
rm -r "${bastille_templatesdir}/${_user}"
|
||||
fi
|
||||
|
||||
else
|
||||
# Verify a single template
|
||||
bastille verify "${_user}/${_repo}"
|
||||
fi
|
||||
|
||||
# Remove the cloned repo
|
||||
if [ -n "${_user}" ]; then
|
||||
rm -r "${bastille_templatesdir}/${_user}"
|
||||
fi
|
||||
}
|
||||
|
||||
# Handle options.
|
||||
|
||||
Reference in New Issue
Block a user