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
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
function update-homes
|
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
|
if set --query _flag_help
|
||||||
echo "Update home's configuration"
|
echo "Update home's configuration"
|
||||||
|
@ -21,6 +21,9 @@ function update-homes
|
||||||
echo " -r --root"
|
echo " -r --root"
|
||||||
echo " Update root part"
|
echo " Update root part"
|
||||||
echo
|
echo
|
||||||
|
echo " -s --skip-secrets"
|
||||||
|
echo " Skip homes-private part"
|
||||||
|
echo
|
||||||
echo " -R --remove"
|
echo " -R --remove"
|
||||||
echo " Remove old configuration"
|
echo " Remove old configuration"
|
||||||
echo
|
echo
|
||||||
|
@ -47,6 +50,7 @@ function update-homes
|
||||||
./update-home.fish $options
|
./update-home.fish $options
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
if not set --query _flag_skip-secrets
|
||||||
pushd ~/homes-private
|
pushd ~/homes-private
|
||||||
if set --query _flag_git
|
if set --query _flag_git
|
||||||
gitpr
|
gitpr
|
||||||
|
@ -61,4 +65,5 @@ function update-homes
|
||||||
end
|
end
|
||||||
./update-private.fish $options
|
./update-private.fish $options
|
||||||
popd
|
popd
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue