Remove decorative emojis from README headers and script output for improved consistency
This commit is contained in:
@@ -440,7 +440,7 @@ fi
|
||||
# Banner
|
||||
# Purpose: inform the user what will happen and where to connect from the remote.
|
||||
# ----------------------------
|
||||
echo "⏳ Sharing '${FOLDER}' via reverse SSH:"
|
||||
echo "Sharing '${FOLDER}' via reverse SSH:"
|
||||
echo " local sshd port : ${LOCAL_SSH_PORT}"
|
||||
echo " remote bind port : ${TUNNEL_PORT} (on ${REMOTE_HOST})"
|
||||
echo " remote user : ${REMOTE_USER}"
|
||||
@@ -488,7 +488,7 @@ EOT
|
||||
)
|
||||
fi
|
||||
|
||||
echo "🔗 Invite (copy to chat):"
|
||||
echo "Invite (copy to chat):"
|
||||
echo "------------------------------------------------------------"
|
||||
[[ -n "$AUTH_CMD" ]] && echo "${AUTH_CMD}"
|
||||
echo "${INVITE_CMD}"
|
||||
@@ -501,10 +501,10 @@ EOT
|
||||
if $QR; then
|
||||
if command -v qrencode >/dev/null 2>&1; then
|
||||
echo
|
||||
echo "📱 QR (scan to copy the command):"
|
||||
echo "QR (scan to copy the command):"
|
||||
printf "%s" "${INVITE_CMD}" | qrencode -t ansiutf8
|
||||
else
|
||||
echo "⚠️ 'qrencode' not installed; skipping QR."
|
||||
echo "'qrencode' not installed; skipping QR."
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
@@ -521,7 +521,7 @@ echo "To stop sharing early: press Ctrl+C in this window."
|
||||
# ----------------------------
|
||||
if ssh -o BatchMode=yes -o StrictHostKeyChecking="$HKP" -o ConnectTimeout=5 "${REMOTE_USER}@${REMOTE_HOST}" \
|
||||
"command -v nc >/dev/null 2>&1 && nc -z 127.0.0.1 ${TUNNEL_PORT}"; then
|
||||
echo "⚠️ Port ${TUNNEL_PORT} on remote 127.0.0.1 appears in use; choose another with -p." >&2
|
||||
echo "Port ${TUNNEL_PORT} on remote 127.0.0.1 appears in use; choose another with -p." >&2
|
||||
# You may 'exit 1' here if you prefer a hard failure
|
||||
fi
|
||||
|
||||
@@ -538,7 +538,7 @@ SSH_PID=""
|
||||
cleanup() {
|
||||
# stop ssh child if running
|
||||
if [[ -n "${SSH_PID:-}" ]] && kill -0 "$SSH_PID" 2>/dev/null; then
|
||||
echo "⏹️ Stopping share..."
|
||||
echo "Stopping share..."
|
||||
kill -TERM "$SSH_PID" 2>/dev/null || true
|
||||
wait "$SSH_PID" 2>/dev/null || true
|
||||
fi
|
||||
@@ -565,7 +565,7 @@ if timeout "$DURATION" tail --pid="$SSH_PID" -f /dev/null; then
|
||||
else
|
||||
rc=$?
|
||||
if [[ $rc -eq 124 ]]; then
|
||||
echo "⏹️ Sharing ended: reached duration (${DURATION})."
|
||||
echo "Sharing ended: reached duration (${DURATION})."
|
||||
# ensure the child is gone
|
||||
if kill -0 "$SSH_PID" 2>/dev/null; then
|
||||
kill -TERM "$SSH_PID" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user