Skip to content

Instantly share code, notes, and snippets.

@bollovan
Created October 4, 2011 18:56
Show Gist options
  • Save bollovan/1262456 to your computer and use it in GitHub Desktop.
Save bollovan/1262456 to your computer and use it in GitHub Desktop.
#!/bin/zsh
if zenity --question --text="Upload file?" --ok-label="Yes" --cancel-label="No" ; then
if file=$(zenity --file-selection --title="Select a File")
then
zenity --info --text="Link: \n$(ompload -u "$file" | awk '{print $NF}')"
else
zenity --info --text="$(echo "No file selected.")" ;
fi
fi
# vim: ft=sh:et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment