Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if test -z "$1"
- then
- echo "URL must be specified" >&2
- exit 1
- fi
- if test "$#" -ne 1
- then
- echo "Must have exactly one argument (the URL)" >&2
- exit 1
- fi
- # kdialog (and KDE in general) is nicer, but lacks a 'directory save' filter
- DIR="$(zenity --title="select or create an empty directory to clone into" --file-selection --directory --save)" || exit 0
- ERR="$(git clone "$1" "$DIR" 2>&1)" || zenity --error --text="$ERR"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement