diff options
author | Adrian Kummerlaender | 2016-03-04 13:45:41 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2016-03-04 13:45:41 +0100 |
commit | c7357934d8dc4c6a6deb68b7bc8bcd733b81601d (patch) | |
tree | 8736995cd3b55b5773a8685e1de664f189ba13f3 | |
parent | afe443e20fc9197e4a21d8d8d92ad67852f0ef36 (diff) | |
download | change-master.tar change-master.tar.gz change-master.tar.bz2 change-master.tar.lz change-master.tar.xz change-master.tar.zst change-master.zip |
-rwxr-xr-x | change | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,9 @@ source ~/.bashrc readonly FILTER_PATH="/usr/local/share/libChangeLog/filter" -if [[ $(mimedb $1) == application* ]] +command -v $1 > /dev/null + +if [[ $? -eq 0 ]] # i.e. if $1 is an executable then readonly EDITOR_NAME=$(basename $1) readonly EDITOR_CMD="$@" |