Option to skip homes-private
This commit is contained in:
parent
853ada5444
commit
fa3f668f6b
1 changed files with 18 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function update-homes
|
||||
argparse 'h/help' 'g/git' 'd/desktop' 'p/private' 'r/root' 'R/remove' -- $argv
|
||||
argparse 'h/help' 'g/git' 'd/desktop' 'p/private' 'r/root' 'R/remove' 's/skip-secrets' -- $argv
|
||||
|
||||
if set --query _flag_help
|
||||
echo "Update home's configuration"
|
||||
|
@ -21,6 +21,9 @@ function update-homes
|
|||
echo " -r --root"
|
||||
echo " Update root part"
|
||||
echo
|
||||
echo " -s --skip-secrets"
|
||||
echo " Skip homes-private part"
|
||||
echo
|
||||
echo " -R --remove"
|
||||
echo " Remove old configuration"
|
||||
echo
|
||||
|
@ -47,6 +50,7 @@ function update-homes
|
|||
./update-home.fish $options
|
||||
popd
|
||||
|
||||
if not set --query _flag_skip-secrets
|
||||
pushd ~/homes-private
|
||||
if set --query _flag_git
|
||||
gitpr
|
||||
|
@ -61,4 +65,5 @@ function update-homes
|
|||
end
|
||||
./update-private.fish $options
|
||||
popd
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue