11 lines
234 B
Bash
Executable file
11 lines
234 B
Bash
Executable file
#!/usr/bin/zsh
|
|
|
|
GITDIR=/home/slash/projects/etcfiles
|
|
|
|
if [ ! -d "$GITDIR" ]; then
|
|
echo "Cloning etcfiles to $GITDIR"
|
|
git clone git@ryuslash.org:etcfiles.git "$GITDIR"
|
|
fi
|
|
|
|
cd /etc
|
|
git --git-dir "$GITDIR" --work-tree /etc/ "$@"
|