From 710ce7b61489993cebddeae3ac8ead28391d1137 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 10 Jun 2018 18:13:09 -0400 Subject: logi1: Make XDG dirs more simply and portably --- diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst index 9e948bc..9a92290 100644 --- a/hosts/logi1/postinst +++ b/hosts/logi1/postinst @@ -233,9 +233,7 @@ in_target sudo -u pj /home/pj/bin/dfen anacron claws-mail clipit fluxbox \ # Create XDG directories. sed 's/#.*$//; /^$/d;' "${target}/home/pj/.config/user-dirs.dirs" | \ while IFS='=' read var val; do - HOME='/home/pj' - eval "mkdir '${target}/'${val}" - eval "chown pj:pj '${target}/'${val}" + in_target sudo -u pj sh -c "HOME='/home/pj'; mkdir \"${val}\"" done # Add empty folder list to prevent Claws Mail wizard from running. -- cgit v0.9.1