1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scrumblr_ynh.git synced 2024-09-03 20:16:29 +02:00

Create _common

This commit is contained in:
frju365 2017-01-29 21:38:40 +01:00 committed by GitHub
parent 248b345d85
commit 945950466f

9
scripts/_common Normal file
View file

@ -0,0 +1,9 @@
extract_source() {
local DESTDIR=$1
sudo git clone https://github.com/aliasaria/scrumblr.git $DESTDIR \
|| ynh_die "Unable to download source"
sudo mv $DESTDIR/scrumblr .. \
|| ynh_die "Unable to extract source tarball"
sudo rm $DESTDIR/scrumblr
}