Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
christopappas committed Feb 2, 2024
1 parent 6751341 commit b4aaf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ _checkout ()
# Results of the match are saved to an array called $BASH_REMATCH.
[[ $repo =~ $name_pattern ]]
name="${BASH_REMATCH[1]}"
echo "$name"

# If a directory exists and it is nonempty, assume the repo has been cloned.
if [ -d "$name" ] && [ -n "$(ls -A "$name" 2>/dev/null)" ]; then
cd "$name"
Expand Down

0 comments on commit b4aaf05

Please sign in to comment.