mirror of
https://codeberg.org/Mo8it/How_To_Linux.git
synced 2024-11-21 22:28:04 +00:00
Fix some checks
This commit is contained in:
parent
5d6acdbc9e
commit
8b90df6fe7
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ pub fn task() -> Task {
|
|||
.validator(FileContent {
|
||||
file: fish_history.clone(),
|
||||
expected: StringContent::Regex(
|
||||
Regex::new(r"lolcat.* (-r |--random)").expect("Failed to build a regex"),
|
||||
Regex::new(r"lolcat.* (-r( |\n)|--random)").expect("Failed to build a regex"),
|
||||
),
|
||||
})
|
||||
.hint("Did you read the help message of `lolcat` to find out how to add randomness to the output colors?")
|
||||
|
|
|
@ -10,7 +10,7 @@ pub fn task() -> Task {
|
|||
file: dirs::home_dir()
|
||||
.expect("Failed to get the home directory!")
|
||||
.join(".local/share/fish/fish_history"),
|
||||
expected: StringContent::Part("\n- cmd: dnf upgrade"),
|
||||
expected: StringContent::Part("\n- cmd: sudo dnf upgrade"),
|
||||
})
|
||||
.hint("Did you try to update the system? Are you in the fish shell?")
|
||||
.build()
|
||||
|
|
Loading…
Reference in a new issue