summaryrefslogtreecommitdiffstats
path: root/redhat/docker/pclinuxos
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/docker/pclinuxos')
-rwxr-xr-xredhat/docker/pclinuxos/genla.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/docker/pclinuxos/genla.sh b/redhat/docker/pclinuxos/genla.sh
index b909b0601..ecc7ac98f 100755
--- a/redhat/docker/pclinuxos/genla.sh
+++ b/redhat/docker/pclinuxos/genla.sh
@@ -60,4 +60,5 @@ dlpreopen=''
libdir='${LIBDIR}'
EOF
-sudo mv "/tmp/$LIB.$$" "${FILE}"
+[ $(whoami) = "root" ] || SUDO="sudo"
+$SUDO mv "/tmp/$LIB.$$" "${FILE}"