Fixed support for single-word strings (#134)
Earlier Qrify didn't work for strings of single words (even URLs)
This commit is contained in:
parent
b4141ece77
commit
5e24405907
|
@ -125,7 +125,6 @@ do
|
||||||
u) checkInternet && update && exit 0 || exit 1 ;;
|
u) checkInternet && update && exit 0 || exit 1 ;;
|
||||||
h) usage && exit 0 ;;
|
h) usage && exit 0 ;;
|
||||||
m) multiline="1" && echo "Error this is not a supported feature yet" && exit 1 ;;
|
m) multiline="1" && echo "Error this is not a supported feature yet" && exit 1 ;;
|
||||||
*) usage && exit 0 ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -141,8 +140,10 @@ elif [[ $# == "1" ]];then
|
||||||
update || exit 1
|
update || exit 1
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
usage
|
checkInternet || exit 1
|
||||||
exit 1
|
input=$(printf '%s ' "$@")
|
||||||
|
makeqr || exit 1
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ $multiline == "0" ]]; then
|
if [[ $multiline == "0" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue