fi
}
+# Check for non existing installations
+function drupal_check_not_existing {
+ if [ ! -e "$BASE/drupal-$1" ]; then
+ echo "Folder $BASE/drupal-$1 does not exist, skipping"
+ exit 1
+ fi
+}
+
# Iterate through all drupal instances
function drupal_iterate {
for version in $SERIES; do
fi
}
-# Upgrade a drupal instance using upstream source.
+# Upgrade a drupal instance using upstream source
function drupal_upgrade {
if [ "$#" != "2" ]; then
echo "Usage: `basename $0` upgrade <old_version> <new_version>"
fi
drupal_check_existing $new
+ drupal_check_not_existing $old
# Set drupal series
if [ "$new_major" == "4" ]; then