#!/bin/sh set +x ## Check for needed pkges __DEPS="ruby curl zenity" for i in $__DEPS; do [[ "`which $i`" != "" ]] && continue || { echo -e "$i not found, please install" && exit 1;} done ## Check for ompload itself _uploader=$(which ompload 2>/dev/null) [[ $_uploader ]] && continue || { zenity --error --text="$0: ompload not found, please download and install first.";exit 1;} ## DoIt zenity --info --text="`$_uploader $@`" 100 125 unset _uploader __DEPS exit $?