mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 05:16:51 +08:00
parent
a0811973f6
commit
9c8d79a347
|
@ -394,7 +394,7 @@ function backup_file -a file_path
|
|||
say "Existent $file found at $path"
|
||||
say "↳ Moving to $backup_file"
|
||||
|
||||
if not command mv "$file_path" $backup_file 2>/dev/null
|
||||
if not command cp "$file_path" $backup_file 2>/dev/null
|
||||
abort "Could not backup $file_path"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user