git.slaskete.net
/
einar-bin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Y U NO QUOTE?
[einar-bin]
/
imgurgame.bash
diff --git
a/imgurgame.bash
b/imgurgame.bash
index 66bbe4e33301e7a26f11775ce428873f4d6f9613..763592987fe03b20b708abefc42aad6b25f1f81c 100755
(executable)
--- a/
imgurgame.bash
+++ b/
imgurgame.bash
@@
-15,7
+15,7
@@
imgururl() {
testimgur() {
local URL=${1}
local RESULT=$(curl -s -o /dev/null -I -w "%{http_code}" ${URL})
testimgur() {
local URL=${1}
local RESULT=$(curl -s -o /dev/null -I -w "%{http_code}" ${URL})
- if [[ ${RESULT} ==
200
]]; then
+ if [[ ${RESULT} ==
"200"
]]; then
echo true
else
echo false
echo true
else
echo false