summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk.c b/src/apk.c
index 626c4ee..e874cbb 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -115,7 +115,8 @@ int main(int argc, char **argv)
argc -= optind;
argv += optind;
- apk_root = getenv("ROOT");
+ if (apk_root == NULL)
+ apk_root = getenv("ROOT");
if (apk_root == NULL)
apk_root = "/";