1
0
Fork 0
dotfiles/sync
2023-06-19 19:55:58 +04:00

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() {
path="$4"
prefix="$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"