Use '/' instead of "/" as argument to rfind (#141)
This commit is contained in:
parent
02a160d2e0
commit
d17911a573
@ -186,7 +186,7 @@ pub fn app() {
|
||||
.enumerate()
|
||||
.flat_map(|(i, argument)| {
|
||||
if i == 0 {
|
||||
if let Some(i) = argument.rfind("/") {
|
||||
if let Some(i) = argument.rfind('/') {
|
||||
if matches.is_present("working-directory") {
|
||||
die!("--working-directory and a path prefixed recipe may not be used together.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user