aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver/nvidia-switch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-06-14 13:18:54 +0100
committerRobby Workman <rworkman@slackbuilds.org>2016-06-18 19:14:15 -0500
commit6aba8faef12d1256309f650b68bcef88858c124c (patch)
tree81c2bfd072c353263c3c0f93d3ba30e0d68687bb /system/nvidia-driver/nvidia-switch
parent1f0bd114b7820aac9e05aef664a134d9ad67df18 (diff)
system/nvidia-driver: Fix install with ROOT=.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'system/nvidia-driver/nvidia-switch')
-rw-r--r--system/nvidia-driver/nvidia-switch2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/nvidia-driver/nvidia-switch b/system/nvidia-driver/nvidia-switch
index 640bfd4b239e..a657f5a52cf7 100644
--- a/system/nvidia-driver/nvidia-switch
+++ b/system/nvidia-driver/nvidia-switch
@@ -30,7 +30,7 @@
set -e
-ROOT="/"
+ROOT="${ROOT:-/}"
CWD=$(pwd)
LIBSUFFIX="LIBDIRSUFFIX" # This will be replaced in the build script
COMPAT32="LIB32FLAG" # This will be replaced in the build script (yes | no)