Skip to content

Commit 0d0330f

Browse files
authored
Update index.html
1 parent 790c688 commit 0d0330f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,30 +51,32 @@
5151
if [[ ! -t 0 ]]; then user_agent='pipe'
5252
echo -e "User Agent: ${user_agent}"
5353
cat <<"EOF"
54-
Don\'t use curl -L ... | bash
55-
[warning] This way has been deprecated. Please use bash weapon-url-opener instead
54+
Don't use curl -L ... | bash
55+
[warning] This way has been deprecated. Please use `bash weapon-url-opener' instead.
5656
EOF
5757
5858
# echo "🧪 Terdeteksi: dijalankan via pipe (| bash)"
5959
exit 2
6060
elif [[ -t 0 && "${BASH_SOURCE[0]}" == "$0" ]]; then user_agent="${0}"
6161
62-
echo -e "User Agent: $user_agent"
62+
echo -e "User Agent: $user_agent"
6363
# echo "🧑 Interaktif: dijalankan langsung (bash script.sh)"
6464
:
6565
elif [[ -e /proc/self/fd/63 && $(readlink /proc/self/fd/63) == pipe:* ]]; then user_agent='curl'
66-
echo -e "User Agent: $user_agent"
66+
echo -e "User Agent: $user_agent"
6767
cat <<"EOF"
68-
Warning: Skrip dijalankan via source <(curl ...) / Subtitusi
68+
Don't use source <(curl -L ...)
69+
[warning] This way has been deprecated. Please use `bash weapon-url-opener' instead.
70+
EOF
6971
EOF
7072
7173
#echo "Terdeteksi: dijalankam via subtitusi"
7274
exit 4
7375
elif [[ -n "${BASH_SOURCE[0]}" ]]; then user_agent='source'
74-
cat <<EOF
75-
User Agent: $(echo "$user_agent" | awk -F/ '{print $NF}')
76-
Error: Don't use \`source ${SCRIPT_NAME:-$APP}' "
77-
Use \`bash ${SCRIPT_NAME:-$APP}' or \`${SCRIPT_NAME:-$APP}' instead
76+
echo -e "User Agent: $(echo "$user_agent" | awk -F/ '{print $NF}')"
77+
cat <<"EOF"
78+
Error: Don't use ` source ${SCRIPT_NAME:-$APP} '
79+
Use ` bash ${SCRIPT_NAME:-$APP} ' or ` ${SCRIPT_NAME:-$APP} ' instead
7880
EOF
7981
#echo "📦 Terdeteksi: dijalankan via source"
8082
exit 5

0 commit comments

Comments
 (0)