Add shebang for updatePlugin

Jonathan Hodgson 7 years ago
parent 471df2bba8
commit f246fc26b9
  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