mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
Fix travis build
This commit is contained in:
parent
0257159e1e
commit
dc21b97335
3 changed files with 4 additions and 3 deletions
|
@ -1307,7 +1307,8 @@ prompt_root_indicator() {
|
|||
################################################################
|
||||
# Segment to display Rust version number
|
||||
prompt_rust_version() {
|
||||
local rust_version=$(command rustc --version 2>/dev/null)
|
||||
local rust_version
|
||||
rust_version=$(command rustc --version 2>/dev/null)
|
||||
# Remove "rustc " (including the whitespace) from the beginning
|
||||
# of the version string and remove everything after the next
|
||||
# whitespace. This way we'll end up with only the version.
|
||||
|
|
Loading…
Reference in a new issue