Skip to content

Commit

Permalink
code: only pull if .git directory is there
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jan 23, 2018
1 parent 8e369b9 commit db7f7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/opnsense-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ for ARG in ${@}; do
rm -rf "${DIRECTORY}/${ARG}"
fi

if [ -d "${DIRECTORY}/${ARG}" ]; then
if [ -d "${DIRECTORY}/${ARG}/.git" ]; then

This comment has been minimized.

Copy link
@Mausy5043

Mausy5043 Jan 24, 2018

👍

(cd "${DIRECTORY}/${ARG}"; git pull)
else
git clone ${SITE}/${ACCOUNT}/${ARG} "${DIRECTORY}/${ARG}"
Expand Down

0 comments on commit db7f7ce

Please sign in to comment.