add options to disable/enable interactive mode
This commit is contained in:
parent
949fefaf35
commit
46365d1a84
1 changed files with 12 additions and 0 deletions
12
gentooup.sh
12
gentooup.sh
|
@ -51,6 +51,18 @@ while [[ $# -gt 0 ]]; do
|
||||||
PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y")
|
PORTAGE_UPGRADE_OPTIONS+=("--with-bdeps=y")
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--batch)
|
||||||
|
echo "We do not ask questions"
|
||||||
|
PORTAGE_ASK=""
|
||||||
|
INTERACTIVE=0
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--interactive)
|
||||||
|
echo "We do ask questions"
|
||||||
|
INTERACTIVE=1
|
||||||
|
PORTAGE_ASK="-a"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
echo "Unknown option $1"
|
echo "Unknown option $1"
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Add table
Reference in a new issue