starship: fix git-config path

This commit is contained in:
Chongyun Lee 2022-08-23 18:32:50 +08:00
parent d85e66a197
commit 7e0caf187a
No known key found for this signature in database
GPG Key ID: 379E4F5EB8CD7985
2 changed files with 6 additions and 5 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A minimal, blazing fast, and extremely customizable prom
TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.10.1"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/starship/starship/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0dcf3a087748c241207a8c86a8c7b6e4d5558916d22deb4348942797d58c3ed9
# TERMUX_PKG_AUTO_UPDATE=true

View File

@ -1,11 +1,11 @@
--- a/src/values/path.rs
+++ b/src/values/path.rs
@@ -162,7 +162,7 @@
}
@@ -170,7 +170,7 @@
Err(interpolate::Error::UserInterpolationUnsupported)
}
- #[cfg(any(target_os = "windows", target_os = "android"))]
+ #[cfg(windows)]
- #[cfg(not(windows))]
+ #[cfg(not(any(target_os = "windows", target_os = "android")))]
fn interpolate_user(
self,
_home_for_user: fn(&str) -> Option<PathBuf>,
home_for_user: fn(&str) -> Option<PathBuf>,