Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
derekhenderson818@gmail.com authored and derekhenderson818@gmail.com committed Oct 12, 2023
1 parent 0bccdf5 commit c27fbab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Run from HOME directory

dotfiles=(.bashrc .vimrc)

autogen_begin="# AUTOGEN: begin (dotfiles/setup.sh)"
autogen_end="# AUTOGEN: end"

for dotfile in ${dotfiles[@]}; do
if ! [ -f $dotfile ]; then # if dotfile does not exist
echo "creating dotfile: $dotfile"
echo "creating new dotfile: $dotfile"
add_dotfile=true
else # if dotfile exists
if [ $(grep -xc "$autogen_begin" $dotfile) -eq 0 ]; then # if autogen not present
Expand Down

0 comments on commit c27fbab

Please sign in to comment.