Add Flickr tags in clipboard
+ clean code
This commit is contained in:
@@ -30,7 +30,7 @@ opt_wildlife=false
|
||||
opt_all=true
|
||||
|
||||
showHelp() {
|
||||
echo -e "${greenbold}keywords2insta${reset} v0.5"
|
||||
echo -e "${greenbold}keywords2insta${reset} v1.0"
|
||||
echo -e "Bruno <bruno<clicclac.info>"
|
||||
echo -e "Read exif and keywords from an image file, and copy them to the clipboard, "
|
||||
echo -e " ready for Instagram and Flickr."
|
||||
@@ -375,13 +375,6 @@ if [ $opt_others = true ]; then
|
||||
keywords_insta+="$others_insta"
|
||||
fi
|
||||
|
||||
: <<'END_COMMENT'
|
||||
echo "$keywords_flickr"
|
||||
echo
|
||||
echo "$keywords_insta"
|
||||
echo
|
||||
END_COMMENT
|
||||
|
||||
|
||||
# suppress accent (bug in macos) => add sed => suppress punctuation too
|
||||
# https://stackoverflow.com/questions/806199/how-to-fix-weird-issue-with-iconv-on-mac-os-x
|
||||
@@ -420,5 +413,14 @@ fi
|
||||
echo -e "\n${bold}The Instagram's tags are available in your clipboard !${reset}"
|
||||
echo "$keywords_insta"
|
||||
|
||||
echo -e "\nPress <Enter> to get the Flickr' tags..."
|
||||
read -p ""
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]] && [ -x "$(command -v xsel)" ]; then
|
||||
xsel -b <<< "$keywords_flickr"
|
||||
elif [[ "$OSTYPE" == "darwin"* ]] && [ -x "$(command -v pbcopy)" ]; then
|
||||
pbcopy <<< "$keywords_flickr"
|
||||
fi
|
||||
|
||||
echo -e "\n${bold}Here the Flickr's tags too !${reset}"
|
||||
echo "$keywords_flickr"
|
||||
Reference in New Issue
Block a user