execute git branch -D "quilt/$name"
execute git checkout -b "quilt/$name" "$rbase" || sh -i || {
- [ -f "$sfile.orig" ] && mv -f $sfile.orig $sfile
+ [ -f "$sfile.orig" ] &&
+ mv -f "$sfile.orig" "$sfile"
exit 1
}
author=$(grep -v '^#' ../real_control | awk -F ' ' '$3=="'"$name"'" { printf("%s", $1); }' | sed 's/,.*$//')
execute git quiltimport --author "$author" --patches "../quilt/$name" || sh -i || {
- [ -f "$sfile.orig" ] && mv -f $sfile.orig $sfile
+ [ -f "$sfile.orig" ] &&
+ mv -f "$sfile.orig" "$sfile"
exit 1
}
[ -f "$sfile.orig" ] &&
- mv -f $sfile.orig $sfile
+ mv -f "$sfile.orig" "$sfile"
done
git checkout master