tweak script

This commit is contained in:
Travis Burtrum 2016-11-28 14:34:37 -05:00
parent 4ef8b43bf2
commit 2bfd6f4df1
1 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,7 @@ add() {
update() {
# Update a package and it's dependencies from the AUR
(
#set -e
#set -e # breaks updating all if one fails, ignore errors
if [ "$#" -eq 0 ]; then
cd $basedir/src
update *
@ -259,12 +259,15 @@ build() {
}
rebuild() {
(
set -e
setup
repo_name=$1
mkdir -p $basedir/$repo_name
shift
arch-nspawn $chroot/$repo_name pacman -Rscn --noconfirm "$@"
build "$repo_name" "$@"
)
}
if [ "$#" -gt 0 ]; then