1
0
Fork 0
dotfiles/sync

31 lines
388 B
Text
Raw Normal View History

2023-04-19 16:04:25 -04:00
#!/bin/sh
# usage:
#
# sudo ./sync
# sudo ./sync gentoo
set -eu
REPO="$(dirname "$(realpath "$0")")"
PREFIX="${1:-''}"
2023-06-19 11:55:58 -04:00
install_dir() {
true
}
install_file() {
2024-01-05 15:51:35 -05:00
prefix="$1"
path="$5"
2023-04-19 16:04:25 -04: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 11:55:58 -04:00
. "$REPO/files.sh"