1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-10-18 15:12:39 +00:00

Fix some checks

This commit is contained in:
Mo 2023-08-14 15:30:17 +02:00
parent 5d6acdbc9e
commit 8b90df6fe7
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ pub fn task() -> Task {
.validator(FileContent { .validator(FileContent {
file: fish_history.clone(), file: fish_history.clone(),
expected: StringContent::Regex( 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?") .hint("Did you read the help message of `lolcat` to find out how to add randomness to the output colors?")

View file

@ -10,7 +10,7 @@ pub fn task() -> Task {
file: dirs::home_dir() file: dirs::home_dir()
.expect("Failed to get the home directory!") .expect("Failed to get the home directory!")
.join(".local/share/fish/fish_history"), .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?") .hint("Did you try to update the system? Are you in the fish shell?")
.build() .build()