Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzvnn committed Jul 8, 2023
0 parents commit fc12327
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions token.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Check if xclip is installed
if ! command -v xclip &> /dev/null; then
echo "Error: xclip is not installed. Please install it to use this script."
exit 1
fi

# Check if the file exists
if [ ! -f "/home/jrzvnn/.keys/.token" ]; then
echo "Error: .token.txt file not found."
exit 1
fi

# Read the file and copy the content to clipboard
content=$(cat "/home/jrzvnn/.keys/.token")
echo -n "$content" | xclip -selection clipboard

echo "Content copied to clipboard."

0 comments on commit fc12327

Please sign in to comment.