Update alias: return error if unknown option provided
This commit is contained in:
parent
ae5fd10a44
commit
4f3234d98a
1 changed files with 27 additions and 22 deletions
|
@ -216,6 +216,9 @@ update() {
|
|||
dotdrop install
|
||||
}
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
packages # Update only packages if no option was provided
|
||||
else
|
||||
case "$1" in
|
||||
all)
|
||||
all
|
||||
|
@ -235,9 +238,11 @@ update() {
|
|||
;;
|
||||
{%@@ endif @@%}
|
||||
*)
|
||||
packages
|
||||
echo "Unknown option: $1"
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
_update() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue