In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 6:
result=$(busctl call com.axis.UserManagement1 /com/axis/UserManagement1 com.axis.UserManagement1.Vapix GetUser s $1 2>/dev/null || :)
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
result=$(busctl call com.axis.UserManagement1 /com/axis/UserManagement1 com.axis.UserManagement1.Vapix GetUser s "$1" 2>/dev/null || :)
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 17:
count_secondary="$(echo $result | cut -d' ' -f2)"
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
count_secondary="$(echo "$result" | cut -d' ' -f2)"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 18:
if [ $count_secondary -ne 0 ]; then
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$count_secondary" -ne 0 ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 19:
m2="$(echo $result | cut -d' ' -f3-)"
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
m2="$(echo "$result" | cut -d' ' -f3-)"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 23:
printf "$secondary_groups\n"
^-------------------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 32:
grouplist=$(id -nG $USER 2>/dev/null)
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
grouplist=$(id -nG "$USER" 2>/dev/null)
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 36:
printf "$group "
^-------^ SC2059 (info): Don't use variables in the printf format string. Use printf '..%s..' "$foo".
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 44:
id -nG $REMOTE_USER
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
id -nG "$REMOTE_USER"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/usergroup.cgi line 46:
get_groups_names $REMOTE_USER
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
get_groups_names "$REMOTE_USER"
For more information:
https://www.shellcheck.net/wiki/SC2059 -- Don't use variables in the printf...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...