aboutsummaryrefslogtreecommitdiff
path: root/config.sh
blob: d13189a4e3ff32ab145a28553534bf10508d6459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Exports config files

for file in $(find src -type f); do
    export clean=$(echo $file | cut -c 4-) #Removes src prefix
    mkdir -p $(dirname $clean)
    cp -P $file $clean
done

for file in $(find home -type f); do
    export clean=/home/${USE}$(echo $file | cut -c 5-)
    mkdir -p $(dirname $clean)
    cp -P $file $clean
done
chown -R ${USE}:${USE} /home/${USE}