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

Commit

Permalink
fix printf output
Browse files Browse the repository at this point in the history
  • Loading branch information
phlinhng committed May 10, 2020
1 parent 726c73d commit 3f51116
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/v2sub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,19 +227,19 @@ display_link() {
apiPrefix="https://$(read_json /usr/local/etc/v2script/config.json '.sub.api.tlsHeader')/sub?url=${mainSubEncoded}&target="

colorEcho ${YELLOW} "v2RayNG / Shadowrocket / Pharos Pro"
printf "${mainSub}" | tr -d '\n' && printf "\n\n"
printf %s "${mainSub}" | tr -d '\n' && printf "\n\n"

colorEcho ${YELLOW} "Clash"
printf "${apiPrefix}clash" | tr -d '\n' && printf "\n\n"
printf %s "${apiPrefix}clash" | tr -d '\n' && printf "\n\n"

colorEcho ${YELLOW} "ClashR"
printf "${apiPrefix}clashr" | tr -d '\n' && printf "\n\n"
printf %s "${apiPrefix}clashr" | tr -d '\n' && printf "\n\n"

colorEcho ${YELLOW} "Quantumult"
printf "${apiPrefix}quan" | tr -d '\n' && printf "\n\n"
printf %s "${apiPrefix}quan" | tr -d '\n' && printf "\n\n"

colorEcho ${YELLOW} "QuantumultX"
printf "${apiPrefix}quanx" | tr -d '\n' && printf "\n\n"
printf %s "${apiPrefix}quanx" | tr -d '\n' && printf "\n\n"

colorEcho ${YELLOW} "Loon"
printf "${apiPrefix}loon" | tr -d '\n' && printf "\n"
Expand Down

0 comments on commit 3f51116

Please sign in to comment.