Skip to content

Commit 57359f4

Browse files
author
Jared Murrell
authored
added Windows/Mac fix
1 parent 32679d4 commit 57359f4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

svn2github.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
## Include files in the current working directory
2-
INC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
3-
source ${INC_DIR}/_functions.sh
2+
if [[ $(uname) != 'Linux' ]]
3+
then
4+
source _functions.sh
5+
else
6+
INC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
7+
[[ -f ${INC_DIR}/_functions.sh ]] && source ${INC_DIR}/_functions.sh
8+
fi
49

5-
_cleanup
610
_welcome
711
_setup
812
_svn_sizer

0 commit comments

Comments
 (0)