mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-26 18:51:05 +03:00
Add unattended install option
This commit is contained in:
parent
32dd3efe5e
commit
4d705b653a
@ -1,5 +1,5 @@
|
|||||||
function tide_actual_install
|
function tide_actual_install
|
||||||
argparse 'l/local' 'd/dev' -- $argv
|
argparse 'l/local' 'd/dev' 'u/unattended' -- $argv
|
||||||
|
|
||||||
set -l location $argv[1]
|
set -l location $argv[1]
|
||||||
if test -z "$location"
|
if test -z "$location"
|
||||||
@ -61,11 +61,13 @@ function tide_actual_install
|
|||||||
set_color normal
|
set_color normal
|
||||||
printf '%s\n'
|
printf '%s\n'
|
||||||
|
|
||||||
if _user_confirm_defaultYes 'Configure tide prompt?'
|
if not set -q _flag_unattended
|
||||||
tide configure
|
if _user_confirm_defaultYes 'Configure tide prompt?'
|
||||||
else
|
tide configure
|
||||||
printf '%s\n'
|
else
|
||||||
printf '%s\n' 'Run tide configure to customize your prompt.'
|
printf '%s\n'
|
||||||
|
printf '%s\n' 'Run tide configure to customize your prompt.'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
rm -rf $tempDir
|
rm -rf $tempDir
|
||||||
|
Loading…
Reference in New Issue
Block a user