Commit a88eb6ef19e0901e05b9ad2149fb9a80b64bee20

Thomas de Grivel 2022-08-08T13:47:43

fix configure for home dir

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/config.subr b/config.subr
index b44f476..dc548a8 100644
--- a/config.subr
+++ b/config.subr
@@ -88,12 +88,12 @@ fi
 echo "PREFIX = $PREFIX" >> ${CONFIG_MK}
 
 if test -z "$OWNER"; then
-    OWNER="$(ls -ld /home/dx/.rtbuf/ | tr -s ' ' | cut -d ' ' -f 3)"
+    OWNER="$(ls -ld "$HOME/.rtbuf/" | tr -s ' ' | cut -d ' ' -f 3)"
 fi
 echo "OWNER = $OWNER" >> ${CONFIG_MK}
 
 if test -z "$GROUP"; then
-    GROUP="$(ls -ld /home/dx/.rtbuf/ | tr -s ' ' | cut -d ' ' -f 4)"
+    GROUP="$(ls -ld "$HOME/.rtbuf/" | tr -s ' ' | cut -d ' ' -f 4)"
 fi
 echo "GROUP = $GROUP" >> ${CONFIG_MK}