mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 16:24:00 +01:00
Change semicolon to && so that if the cd fails, the command doesn't run. Per feedback on #83
This commit is contained in:
parent
7a1036ecd1
commit
3efe62401c
@ -371,7 +371,7 @@ func (m model) View() string {
|
|||||||
SELECTED_COMMAND = m.tableEntries[m.table.Cursor()].Command
|
SELECTED_COMMAND = m.tableEntries[m.table.Cursor()].Command
|
||||||
if m.selected == SelectedWithChangeDir {
|
if m.selected == SelectedWithChangeDir {
|
||||||
changeDir := m.tableEntries[m.table.Cursor()].CurrentWorkingDirectory
|
changeDir := m.tableEntries[m.table.Cursor()].CurrentWorkingDirectory
|
||||||
SELECTED_COMMAND = "cd " + changeDir + "; " + SELECTED_COMMAND
|
SELECTED_COMMAND = "cd " + changeDir + " && " + SELECTED_COMMAND
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user