bootstrap: add -s flag
This commit is contained in:
parent
f1f10bc6df
commit
34f9d4600e
|
@ -27,6 +27,7 @@ Options:
|
||||||
-u Don't run update scripts
|
-u Don't run update scripts
|
||||||
-y Overwrite conflicts (no prompts)
|
-y Overwrite conflicts (no prompts)
|
||||||
-r Refresh symlinks (same as -uiy)
|
-r Refresh symlinks (same as -uiy)
|
||||||
|
-s Server mode; only install the bare minimum (depends on topic)
|
||||||
```
|
```
|
||||||
|
|
||||||
Here's a simplified break down of what it does:
|
Here's a simplified break down of what it does:
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
# -y Overwrite conflicts (no prompts)
|
# -y Overwrite conflicts (no prompts)
|
||||||
# -p Prompt on file conflict (to overwrite)
|
# -p Prompt on file conflict (to overwrite)
|
||||||
# -r Refresh; the same as -ui
|
# -r Refresh; the same as -ui
|
||||||
|
# -s Server mode; only install the bare minimum
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
source "$(cd $(dirname $0) && pwd -P)/shell/common.sh"
|
source "$(cd $(dirname $0) && pwd -P)/shell/common.sh"
|
||||||
|
@ -72,7 +73,7 @@ install=1
|
||||||
link=1
|
link=1
|
||||||
update=1
|
update=1
|
||||||
yes=0
|
yes=0
|
||||||
while getopts iuldypr opt; do
|
while getopts iuldyprs opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
d) DRYRUN=1 ;;
|
d) DRYRUN=1 ;;
|
||||||
i) install= ;;
|
i) install= ;;
|
||||||
|
@ -80,6 +81,7 @@ while getopts iuldypr opt; do
|
||||||
p) yes= ;;
|
p) yes= ;;
|
||||||
u) update= ;;
|
u) update= ;;
|
||||||
y) yes=1 ;;
|
y) yes=1 ;;
|
||||||
|
s) SERVER=1 ;;
|
||||||
r) update=
|
r) update=
|
||||||
install=
|
install=
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue