#!/bin/bash
# wrapper for zip command
# put in nautilus_scripts or run from command line
if [ -n "$1" ]; then
 itemtozip="$1"
 zipfile="$1.zip"
 if [ -e "$itemtozip" ]; then
  zip -r "$zipfile" "$itemtozip"
 else
  echo "$itemtozip not found"
 fi
else
 echo "Usage: MakeZipFile item"
 echo "Creates item.zip"
fi
