mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Boolean logic is hard (and buggy? wtf?)
Fixed a bug with alias resolution not working, for reasons that are currently beyond my understanding of shell scripting it would seem.
This commit is contained in:
@@ -12,7 +12,7 @@ command="$1"
|
||||
|
||||
# Lookup command, attempt to resolve as alias if fails
|
||||
! command_path="$(command -v "tmuxifier-$command")"
|
||||
if [ ! -n $? ]; then
|
||||
if [ -z "$command_path" ]; then
|
||||
resolved="$(tmuxifier-alias "$command")"
|
||||
if [ ! -z "$resolved" ]; then
|
||||
command="$resolved"
|
||||
|
||||
Reference in New Issue
Block a user