#!/bin/sh # Exports config files for file in $(find src -type f); do export clean=$(echo $file | cut -c 4-) #Removes src prefix mkdir -pv $(dirname $clean) cp $file $clean done for file in $(find home -type f); do export clean=/home/${USE}$(echo $file | cut -c 5-) mkdir -pv $(dirname $clean) cp $file $clean done chown -R ${USE}:${USE} /home/${USE}