1
0
Fork 0
dotfiles/sync

31 lines
388 B
Plaintext
Raw Normal View History

2023-04-19 20:04:25 +00:00
#!/bin/sh
# usage:
#
# sudo ./sync
# sudo ./sync gentoo
set -eu
REPO="$(dirname "$(realpath "$0")")"
PREFIX="${1:-''}"
2023-06-19 15:55:58 +00:00
install_dir() {
true
}
install_file() {
2024-01-05 20:51:35 +00:00
prefix="$1"
path="$5"
2023-04-19 20:04:25 +00:00
if [ -f "$path" ]; then
echo cp "$path" "$REPO/$prefix$path"
cp "$path" "$REPO/$prefix$path"
else
echo "Not found: $path"
fi
}
2023-06-19 15:55:58 +00:00
. "$REPO/files.sh"