summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fsmgr.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsmgr.hs b/fsmgr.hs
index 3a59a53..ca80f8a 100644
--- a/fsmgr.hs
+++ b/fsmgr.hs
@@ -122,7 +122,7 @@ absPath f = do
122 122
123getHomeDir :: Action FilePath 123getHomeDir :: Action FilePath
124getHomeDir = do 124getHomeDir = do
125 Stdout homeDir <- cmd ["sh", "-c", "getent passwd \"$SUDO_USER\"|(IFS=: read _ _ _ _ _ d _; printf %s \"$d\")"] 125 Stdout homeDir <- cmd "sh -c" ["if [ \"$SUDO_USER\" ]; then getent passwd \"$SUDO_USER\" | cut -d: -f6; else printf \"%s\n\" \"$HOME\"; fi"]
126 return homeDir 126 return homeDir
127 127
128buildInitialImage :: DiskImageConfig -> FilePath -> FilePath -> Action () 128buildInitialImage :: DiskImageConfig -> FilePath -> FilePath -> Action ()