Skip to content

Commit 64195e3

Browse files
authored
Fix destination folder check in backup function
1 parent a1b2cc6 commit 64195e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backupToGitHubFolder.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
backupFiles(){
1414
echo -e -n " Source: ${1}\n"
1515
echo -e -n " Destination: ${2}\n"
16-
if [ ! -d "$destFolder" ]; then
16+
if [ ! -d "${2}" ]; then
1717
`mkdir -p ${2}`
1818
fi
1919
compareAndCopyMachineFiles "${1}" "${2}" "*.*"
@@ -36,4 +36,4 @@ destFolder=`echo "${gitHubFolder_shell}"`
3636
backupFiles "${sourceFolder}" "${destFolder}"
3737
echo -e -n ">> Done checking Script Files\n"
3838

39-
echo
39+
echo

0 commit comments

Comments
 (0)