Skip to content

Commit 2d22978

Browse files
committed
fix(clone): directory not opened in terminal when forking
1 parent 314c61d commit 2d22978

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/clone-repo.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ if [[ $success -ne 0 ]]; then
4949
fi
5050

5151
# Open in terminal via Alfred
52-
echo -n "$local_repo_folder/$clone_dir"
52+
abs_path="$local_repo_folder/$clone_dir"
53+
echo -n "$abs_path"
5354

5455
cd "$clone_dir" || return 1
5556

@@ -103,7 +104,7 @@ fi
103104
if [[ "$ownerOfRepo" != "true" && "$fork_on_clone" == "1" ]]; then
104105

105106
if [[ -x "$(command -v gh)" ]]; then
106-
gh repo fork --remote=false
107+
gh repo fork --remote=false &> /dev/null
107108
else
108109
echo "ERROR: Cannot fork, \`gh\` not installed."
109110
fi

0 commit comments

Comments
 (0)