melawy-etc-skel-kvantum/01_copy_modified.sh

24 lines
304 B
Bash
Raw Normal View History

2023-10-22 04:12:20 +05:00
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
l=$(cat liveuser.txt)
for i in $l
do
if [ -f "./skel/$i" ]; then
echo "$i exist"
cp -vf /home/liveuser/$i ./skel/$i
fi
done
chown -R 1000:1000 .
2023-11-05 11:06:44 +05:00
echo "Ready"