Skip to content

Commit

Permalink
fix: it should check if argument is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
y3owk1n committed Jan 6, 2024
1 parent 07d7eab commit aaaf927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/gclx.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function gclx --description="Git clone and cd"
# Check if an argument is provided
if test (count $argv) -le 1
if test (count $argv) -eq 0
echo "Usage: gclx owner/repo or gclx https://github.com/owner/repo.git"
return 1
end
Expand Down

0 comments on commit aaaf927

Please sign in to comment.