aboutsummaryrefslogtreecommitdiff
path: root/config.sh
blob: 5fac5ed190e0b75ccb2e49673b03c6c1148ada48 (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 $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 $file $clean
done
chown -R ${USE}:${USE} /home/${USE}