@@ -629,21 +629,21 @@ assertFileExists() {
629
629
if command [ $# -eq 2 ]; then
630
630
shunit_custom_message_=$1
631
631
shunit_file_=$2
632
- shunit_message_=" ${shunit_message_} $shunit_custom_message_ "
632
+ shunit_message_=" ${shunit_message_}${ shunit_custom_message_} "
633
633
else
634
634
shunit_file_=$1
635
- shunit_message_=" ${shunit_message_} The file '$shunit_file_ ' does not exist"
635
+ shunit_message_=" ${shunit_message_} The file '${ shunit_file_} ' does not exist"
636
636
fi
637
637
638
638
shunit_return=${SHUNIT_TRUE}
639
- if command [ -f " $shunit_file_ " ]; then
639
+ if command [ -f " ${ shunit_file_} " ]; then
640
640
_shunit_assertPass
641
641
else
642
642
fail " ${shunit_message_} "
643
643
shunit_return=${SHUNIT_FALSE}
644
644
fi
645
645
646
- unset shunit_message_ shunit_file_
646
+ unset shunit_message_ shunit_file_ shunit_custom_message_
647
647
return ${shunit_return}
648
648
}
649
649
# shellcheck disable=SC2016,SC2034
@@ -670,21 +670,21 @@ assertFileDoesNotExist() {
670
670
if command [ $# -eq 2 ]; then
671
671
shunit_custom_message_=$1
672
672
shunit_file_=$2
673
- shunit_message_=" ${shunit_message_} $shunit_custom_message_ "
673
+ shunit_message_=" ${shunit_message_}${ shunit_custom_message_} "
674
674
else
675
675
shunit_file_=$1
676
- shunit_message_=" ${shunit_message_} The file '$shunit_file_ ' does exist"
676
+ shunit_message_=" ${shunit_message_} The file '${ shunit_file_} ' does exist"
677
677
fi
678
678
679
679
shunit_return=${SHUNIT_TRUE}
680
- if command [ -f " $shunit_file_ " ]; then
680
+ if command [ -f " ${ shunit_file_} " ]; then
681
681
fail " ${shunit_message_} "
682
682
shunit_return=${SHUNIT_FALSE}
683
683
else
684
684
_shunit_assertPass
685
685
fi
686
686
687
- unset shunit_message_ shunit_file_
687
+ unset shunit_message_ shunit_file_ shunit_custom_message_
688
688
return ${shunit_return}
689
689
}
690
690
# shellcheck disable=SC2016,SC2034
@@ -711,21 +711,21 @@ assertDirectoryExists() {
711
711
if command [ $# -eq 2 ]; then
712
712
shunit_custom_message_=$1
713
713
shunit_directory_=$2
714
- shunit_message_=" ${shunit_message_} $shunit_custom_message_ "
714
+ shunit_message_=" ${shunit_message_}${ shunit_custom_message_} "
715
715
else
716
716
shunit_directory_=$1
717
- shunit_message_=" ${shunit_message_} The directory '$shunit_directory_ ' does not exist"
717
+ shunit_message_=" ${shunit_message_} The directory '${ shunit_directory_} ' does not exist"
718
718
fi
719
719
720
720
shunit_return=${SHUNIT_TRUE}
721
- if command [ -d " $shunit_directory_ " ]; then
721
+ if command [ -d " ${ shunit_directory_} " ]; then
722
722
_shunit_assertPass
723
723
else
724
724
fail " ${shunit_message_} "
725
725
shunit_return=${SHUNIT_FALSE}
726
726
fi
727
727
728
- unset shunit_message_ shunit_directory_
728
+ unset shunit_message_ shunit_directory_ shunit_custom_message_
729
729
return ${shunit_return}
730
730
}
731
731
# shellcheck disable=SC2016,SC2034
@@ -752,21 +752,21 @@ assertDirectoryDoesNotExist() {
752
752
if command [ $# -eq 2 ]; then
753
753
shunit_custom_message_=$1
754
754
shunit_directory_=$2
755
- shunit_message_=" ${shunit_message_} $shunit_custom_message_ "
755
+ shunit_message_=" ${shunit_message_}${ shunit_custom_message_} "
756
756
else
757
757
shunit_directory_=$1
758
- shunit_message_=" ${shunit_message_} The directory '$shunit_directory_ ' does exist"
758
+ shunit_message_=" ${shunit_message_} The directory '${ shunit_directory_} ' does exist"
759
759
fi
760
760
761
761
shunit_return=${SHUNIT_TRUE}
762
- if command [ -d " $shunit_directory_ " ]; then
762
+ if command [ -d " ${ shunit_directory_} " ]; then
763
763
fail " ${shunit_message_} "
764
764
shunit_return=${SHUNIT_FALSE}
765
765
else
766
766
_shunit_assertPass
767
767
fi
768
768
769
- unset shunit_message_ shunit_directory_
769
+ unset shunit_message_ shunit_directory_ shunit_custom_message_
770
770
return ${shunit_return}
771
771
}
772
772
# shellcheck disable=SC2016,SC2034
0 commit comments