diff options
Diffstat (limited to 'config.sh')
-rwxr-xr-x | config.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config.sh b/config.sh new file mode 100755 index 0000000..c15bcc1 --- /dev/null +++ b/config.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Exports config files + +for file in $(find src -type f); do + export clean=$(echo $file | cut -c 4-) #Removes src prefix + install -d $(dirname $clean) + install -m 644 $file $clean +done + +for file in $(find home -type f); do + export clean=/home/$USER/$(echo $file | cut -c 4-) + install -o $USER -d $(dirname $clean) + install -o $USER $file $clean +done |