#!/bin/bash

for i in ./*/
do
  if [ "$i" == "./cgi-bin/" ] ; then
    continue
  fi
  cd "$i";
  echo $PWD;
  wp core update
  echo "wordpress update completed";
  wp plugin update --all
  echo "plugins updated";
  cd /home/surgerywebpcn1/public_html/classic;
done
