Commit Graph

5 Commits

Author SHA1 Message Date
Jellyfrog
3d5f4bdadd
Quote bug (#12548) 2021-02-22 15:41:27 +01:00
RobJE
e1497ecf0b
shellcheck (#12258)
* remove unneeded semi-colons at end of line

* fix SC2206: Quote to prevent word splitting/globbing

* fix SC2164: Use 'cd ... || exit' in case cd fails

* fix SC2004: $/${} is unnecessary on arithmetic variables.

* fix SC2155: Declare and assign separately to avoid masking return values.

* fix SC2124: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.

* fix SC2059: Don't use variables in the printf format string. Use printf "..%s.." "$foo".

* fix SC2076: Don't quote rhs of =~, it'll match literally rather than as a regex.

* fix SC1090: Can't follow non-constant source. Use a directive to specify location.

* fix SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.

* SC2223: This default assignment may cause DoS due to globbing. Quote it.

* fix SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

* fix SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n"

* better handling of branch comapre

* add missing local ver_73 from merge

* remove duplicate definition
2020-11-11 23:21:15 +01:00
Neil Lathwood
1135bb9146 updated pbin.sh to be inline with other scripts and use env bash (#6583) 2017-05-05 07:52:52 +01:00
Neil Lathwood
54d1e593dd update pbin defaults (secure always on, no-expire and dropped hostname from name) (#6190) 2017-03-14 09:07:46 -05:00
Neil Lathwood
1d243c40c7 feature: Added pbin.sh to upload text to p.libren.ms (#6175)
* feature: Added pbin.sh to upload text to p.libren.ms

* added ack
2017-03-11 21:12:49 -06:00