Update pika-hyprland-settings/debian/postinst
This commit is contained in:
parent
c2fa335015
commit
a2920ce604
@ -2,21 +2,22 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Check if /home has any subdirectories
|
||||||
for u in /home/*
|
if [ "$(ls -A /home)" ]; then
|
||||||
do
|
for u in /home/*; do
|
||||||
if [[ "${u}" == '/home/*' ]]
|
# Check if the current item is a directory
|
||||||
then
|
if [ -d "$u" ]; then
|
||||||
continue
|
if [ ! -f "${u}/.config/hypr/hypridle.conf" ]; then
|
||||||
fi
|
|
||||||
if ! test -f "${u}/.config/hypr/hypridle.conf"
|
|
||||||
then
|
|
||||||
cp -a /etc/skel/. "${u}/"
|
cp -a /etc/skel/. "${u}/"
|
||||||
chown -R "${u}:${u}" "${u}/"
|
chown -R "$(basename "$u"):$(basename "$u")" "${u}/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! test -f "${u}/.config/ags/widgets/systray.js"
|
if [ ! -f "${u}/.config/ags/widgets/systray.js" ]; then
|
||||||
then
|
mkdir -p "${u}/.config/ags/"
|
||||||
cp -af /etc/skel/.config/ags/. "${u}/.config/ags/"
|
cp -af /etc/skel/.config/ags/. "${u}/.config/ags/"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
echo "/home is empty. No user directories to process."
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user