Lines 481-502
Link Here
|
481 |
declare stop_after_automatic=0 |
|
|
482 |
|
483 |
while [ $# -gt 0 ] ; do |
484 |
case "$1" in |
485 |
-h | --help) |
486 |
echo "usage: etc-update [-a|--auto-only]" |
487 |
echo " etc-update [-h|--help]" |
488 |
echo "" |
489 |
echo " -a, --auto-only Automerges trivial changes and exits" |
490 |
echo " -h, --help Prints this help" |
491 |
exit 0 |
492 |
;; |
493 |
-a | --auto-only) |
494 |
echo "Automerging trivial changes only" |
495 |
stop_after_automatic=1 |
496 |
;; |
497 |
* ) |
498 |
die "Wrong parameters" 1 |
499 |
;; |
500 |
esac |
501 |
shift |
502 |
done |
Lines 506-509
Link Here
|
506 |
if [[ $stop_after_automatic -eq 1 ]]; then |
|
|
507 |
die "No more trivial merges" 0 |
508 |
fi |
509 |
|