mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Add self-update command.
This commit is contained in:
parent
7f4a092a5c
commit
6b0492ecf1
1 changed files with 6 additions and 0 deletions
6
ynh-dev
6
ynh-dev
|
@ -23,6 +23,8 @@ Usage :
|
|||
Deploy sources to test it
|
||||
`basename $0` watch [PACKAGES [PACKAGES ...]]
|
||||
Deploy sources each time there is change
|
||||
`basename $0` self-update
|
||||
Update this script (`basename $0`)
|
||||
|
||||
PACKAGES :
|
||||
moulinette
|
||||
|
@ -288,6 +290,10 @@ elif [ "$1" = "watch" ]; then
|
|||
done
|
||||
|
||||
|
||||
elif [ "$1" = "self-update" ]; then
|
||||
check_yunohost_vm
|
||||
cd /vagrant/ynh-dev-tools && git pull && cp ynh-dev ../ynh-dev
|
||||
|
||||
# Fallback to print usage
|
||||
else
|
||||
usage
|
||||
|
|
Loading…
Add table
Reference in a new issue