Compare commits
No commits in common. "0a68add4dafe001623d12af9f0a28224cf08405e" and "ac74b03c858373b457795498339dafbad91eb6e1" have entirely different histories.
0a68add4da
...
ac74b03c85
2 changed files with 1 additions and 5 deletions
|
@ -3,10 +3,6 @@
|
||||||
|
|
||||||
CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}"
|
CLIPBOARD_MANAGER="${CLIPBOARD_MANAGER:-xsel -b}"
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
set -- "$(pwd)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
for f; do
|
for f; do
|
||||||
realpath "$f"
|
realpath "$f"
|
||||||
done | sed -z '$ s/\n$//' | $CLIPBOARD_MANAGER
|
done | sed -z '$ s/\n$//' | $CLIPBOARD_MANAGER
|
||||||
|
|
|
@ -10,7 +10,7 @@ gloned() {
|
||||||
# remove the url up to the last segment, and remove the .git from the end
|
# remove the url up to the last segment, and remove the .git from the end
|
||||||
REPO_DIR="${2:-"$(echo "${1%.git}" | rev | cut -d '/' -f 1 | rev)"}"
|
REPO_DIR="${2:-"$(echo "${1%.git}" | rev | cut -d '/' -f 1 | rev)"}"
|
||||||
|
|
||||||
git clone --recursive "$1" "$REPO_DIR" || return $?
|
git clone "$1" "$REPO_DIR" || return $?
|
||||||
if ! cd "$REPO_DIR";then
|
if ! cd "$REPO_DIR";then
|
||||||
echo 'Error: Could not `cd` into the repo'
|
echo 'Error: Could not `cd` into the repo'
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue