aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-04-21 08:28:38 -0400
committerJohn Szakmeister <john@szakmeister.net>2014-04-21 17:29:40 -0400
commit14e4e678b9eb480c1a8ef14347d6408887a25da1 (patch)
treefa740d344c366d44aa1f2b3f078846b7d832f88c
parent302998b0c76006d7461003d840e1de3c8b41a0c3 (diff)
downloadrneovim-14e4e678b9eb480c1a8ef14347d6408887a25da1.tar.gz
rneovim-14e4e678b9eb480c1a8ef14347d6408887a25da1.tar.bz2
rneovim-14e4e678b9eb480c1a8ef14347d6408887a25da1.zip
Allow USERNAME to be specified on the command line.
There are some systems that have usernames of the form DOMAIN\username, which causes an invalid escape character to be inserted. I was going to add some escaping, but decided it would be best to just outright set the value, since I don't want the DOMAIN portion in there anyways.
-rw-r--r--config/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index b233418bda..b94c3f9f07 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -17,7 +17,7 @@ configure_file (
find_program(WHOAMI_PROG whoami)
find_program(HOSTNAME_PROG hostname)
-if (EXISTS ${WHOAMI_PROG})
+if (NOT DEFINED USERNAME AND EXISTS ${WHOAMI_PROG})
execute_process(COMMAND ${WHOAMI_PROG}
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_VARIABLE USERNAME)