mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 07:35:10 +01:00
chore: skip alias duplicates
This commit is contained in:
parent
0ed23d386c
commit
d4d2d18781
1 changed files with 3 additions and 0 deletions
|
|
@ -142,6 +142,9 @@ impl Data {
|
||||||
if self.alias.is_some() {
|
if self.alias.is_some() {
|
||||||
let alias = self.alias.as_ref().unwrap();
|
let alias = self.alias.as_ref().unwrap();
|
||||||
for command in alias.keys() {
|
for command in alias.keys() {
|
||||||
|
if self.executables.contains(command) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
self.executables.push(command.to_string());
|
self.executables.push(command.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue