SolarFM/plugins/git_clone/download.sh

21 lines
383 B
Bash
Raw Normal View History

2023-01-07 20:15:06 +00:00
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
cd "$(dirname "")"
echo "Working Dir: " $(pwd)
TARGETDIR="${1}"
LINK=`xclip -selection clipboard -o`
cd "${TARGETDIR}"
git clone "${LINK}"
}
main "$@";