1
0
Fork 0
dotfiles/sync

30 lines
388 B
Bash
Executable file

#!/bin/sh
# usage:
#
# sudo ./sync
# sudo ./sync gentoo
set -eu
REPO="$(dirname "$(realpath "$0")")"
PREFIX="${1:-''}"
install_dir() {
true
}
install_file() {
prefix="$1"
path="$5"
if [ -f "$path" ]; then
echo cp "$path" "$REPO/$prefix$path"
cp "$path" "$REPO/$prefix$path"
else
echo "Not found: $path"
fi
}
. "$REPO/files.sh"