Add self-update command.

This commit is contained in:
opi 2016-04-27 13:28:18 +02:00
parent 7f4a092a5c
commit 6b0492ecf1

View file

@ -23,6 +23,8 @@ Usage :
Deploy sources to test it Deploy sources to test it
`basename $0` watch [PACKAGES [PACKAGES ...]] `basename $0` watch [PACKAGES [PACKAGES ...]]
Deploy sources each time there is change Deploy sources each time there is change
`basename $0` self-update
Update this script (`basename $0`)
PACKAGES : PACKAGES :
moulinette moulinette
@ -288,6 +290,10 @@ elif [ "$1" = "watch" ]; then
done 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 # Fallback to print usage
else else
usage usage