Skip to content

Instantly share code, notes, and snippets.

@lemming
Created April 30, 2011 20:20
Show Gist options
  • Save lemming/949962 to your computer and use it in GitHub Desktop.
Save lemming/949962 to your computer and use it in GitHub Desktop.
#!/bin/bash
RESPONSE="`$HOME/bin/post-picasa "$1" 2>&1`"
if [ $? = 0 ]; then
zenity --entry --entry-text="$RESPONSE" --title="Изображение $1 загружено" --text="Нажмите «OK», чтобы скопировать адрес и закрыть это окно" | xclip -selection clipboard
else
echo $RESPONSE | zenity --text-info --title="Произошла ошибка"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment