Add shebang for updatePlugin

master
Jonathan Hodgson 7 years ago
parent dba4230129
commit 0c043e1ec4
  1. 1
      bin/updatePlugin

@ -1,3 +1,4 @@
#!/usr/bin/sh
plugin=$(wp plugin list 2> /dev/null | grep available | head -n 1 | awk '{print $1}') plugin=$(wp plugin list 2> /dev/null | grep available | head -n 1 | awk '{print $1}')
echo "$plugin" echo "$plugin"
versions=$(wp plugin update $plugin 2> /dev/null | tail -n 2 | head -n 1 | awk '{print $2 "->" $3}') versions=$(wp plugin update $plugin 2> /dev/null | tail -n 2 | head -n 1 | awk '{print $2 "->" $3}')

Loading…
Cancel
Save