Skip to contentSkip to conversation

package/swupdate: note init script tokenizing limitation

PATCH New Matt Weber 2 participants 2 messages Apr 21, 2020 – Jan 7, 2021

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 package/swupdate: note init script tokenizing limitation

Command line options reference:
https://sbabic.github.io/swupdate/_sources/swupdate.txt

---

I didn't find a good way around this without completely changing how the upstream scripts were working or requiring a full shell.

---
 package/swupdate/swupdate.sh | 3 +++
 1 file changed, 3 insertions(+)
package/swupdate/swupdate.sh +3 -0
index 17d99ef0d4..31ec536373 100644
@@ -5,6 +5,9 @@
 
 # Override these variables in sourced script(s) located
 # in /usr/lib/swupdate/conf.d or /etc/swupdate/conf.d
+# NOTE: There are substrings used in some swupdate commands which will
+#       need to be wrapped in a script to prevent tokenizing
+#       ( -p/-P post/pre cmds are good examples)
 SWUPDATE_ARGS="-v ${SWUPDATE_EXTRA_ARGS}"
 SWUPDATE_WEBSERVER_ARGS=""
 SWUPDATE_SURICATTA_ARGS=""
Signature · 1 line
2.17.1