kiss: Don't hardcode root

This commit is contained in:
Dylan Araps 2020-05-12 10:51:12 +03:00
parent 14b54e0c61
commit f49e575b64
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -1046,7 +1046,7 @@ pkg_install_files() {
[ -d "$KISS_ROOT/$line" ] && continue
cp -fPp "$2/$line" "$KISS_ROOT/$line"
chown -h root:root "$KISS_ROOT/$line"
chown -h "$USER:$USER" "$KISS_ROOT/$line"
else
cp -f "$2/$line" "$KISS_ROOT/$line"
chmod "$b$oct" "$KISS_ROOT/$line"