aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-03 18:35:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-03 18:40:17 +0300
commit11ea86d820e8a9600078e8b8f181d1a6c25dac94 (patch)
tree24ff2958782af8780a455ad5344612664f9140f8 /build.sh
parent92352d5323d39bdcd32f9a560bfa00185ff99c52 (diff)
Set config.install.sudo to [null] if sudo is empty
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index c70f66f..5081c2c 100755
--- a/build.sh
+++ b/build.sh
@@ -139,7 +139,12 @@ case "$sys" in
;;
*)
conf_rpath="$idir/lib"
- conf_sudo="$sudo"
+
+ if test -n "$sudo"; then
+ conf_sudo="$sudo"
+ else
+ conf_sudo="[null]"
+ fi
;;
esac