test-dir-iterator: do not assume errno values
[gitweb.git] / t / t0302-credential-store.sh
index 1d8d1f210b99e888fa39da14f73aef19eaf338b5..d6b54e8c65a3ec4408fe07ee76a6d8bed957207a 100755 (executable)
@@ -37,7 +37,7 @@ helper_test store
 unset XDG_CONFIG_HOME
 
 test_expect_success 'if custom xdg file exists, home and xdg files not created' '
-       test_when_finished "rm -f $HOME/xdg/git/credentials" &&
+       test_when_finished "rm -f \"$HOME/xdg/git/credentials\"" &&
        test -s "$HOME/xdg/git/credentials" &&
        test_path_is_missing "$HOME/.git-credentials" &&
        test_path_is_missing "$HOME/.config/git/credentials"