update config

This commit is contained in:
Jonathan Hodgson 2018-03-19 08:16:49 +00:00
parent f9179a54b8
commit df24f5dc5d
4 changed files with 9 additions and 5 deletions

View file

@ -1,3 +0,0 @@
#!/usr/bin/sh
echo $(whoami)
#systemctl start org.cups.cupsd.service

6
bin/updatePlugin Normal file
View file

@ -0,0 +1,6 @@
plugin=$(wp plugin list 2> /dev/null | grep available | head -n 1 | awk '{print $1}')
echo "$plugin"
versions=$(wp plugin update $plugin 2> /dev/null | tail -n 2 | head -n 1 | awk '{print $2 "->" $3}')
echo "$versions"
git add .
git commit -m "Update $plugin $version"