Skip to content

Commit

Permalink
fix: change exit code to 0 when no input is detected in paste script
Browse files Browse the repository at this point in the history
Allow the paste script to exit gracefully with code 0 when no input is
detected, enabling it to be used as input for other commands or
algorithms without causing errors.
  • Loading branch information
Marcelo Borges committed Feb 10, 2025
1 parent a3a29b9 commit 604abfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/paste
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

if [ -z "$clipboard_content" ]; then
echoinfo "⚠️ No input received!"
exit 1
exit 0
fi

echoinfo "✅ Echoing clipboard contents:"
Expand Down

0 comments on commit 604abfb

Please sign in to comment.