mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
Fix a shellcheck warning about word splitting
Error: SHELLCHECK_WARNING (CWE-156): [#def2]
/etc/profile.d/podman-docker.sh:4:10: warning[SC2046]: Quote this to prevent word splitting.
2|
3| if [ -z "${DOCKER_HOST-}" ]; then
4|-> if [ $(id -u) -eq 0 ]; then
5| export DOCKER_HOST=unix:///run/podman/podman.sock
6| else
Resolves: https://openscanhub.fedoraproject.org/task/52458/log/podman-5.4.2-1.fc43/scan-results.html#def2
Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
This commit is contained in:
parent
c0b352f2eb
commit
5be3f8d480
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# DOCKER_HOST initialization
|
||||
|
||||
if [ -z "${DOCKER_HOST-}" ]; then
|
||||
if [ $(id -u) -eq 0 ]; then
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
export DOCKER_HOST=unix:///run/podman/podman.sock
|
||||
else
|
||||
if [ -n "${XDG_RUNTIME_DIR-}" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue