diff --git a/git_diff_image b/git_diff_image index 382a11e..fe38723 100755 --- a/git_diff_image +++ b/git_diff_image @@ -68,7 +68,7 @@ if [ -n "${GIT_DIFF_IMAGE_OUTPUT_DIR-}" ] then mkdir -p "$GIT_DIFF_IMAGE_OUTPUT_DIR" destfile='' - if [ "$name1" -ne '/dev/null' ] + if [ "$name1" = '/dev/null' ] then destfile=$(basename "$name1") else