dsanson / termpdf

barebones graphical pdf/djvu/cbr/image viewer that works inside iTerm2 2.9+ and Kitty
MIT License
637 stars 24 forks source link

termpdf will not open files #3

Closed hibachrach closed 8 years ago

hibachrach commented 8 years ago

Attempting termpdf filename.pdf results in the following error message

/usr/local/bin/termpdf: line 33: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
/usr/local/bin/termpdf: line 1117: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix

Attempting termpdf and then entering in the filename afterwards results in a sudden quit without any output.

Running iTerm 2.9.20160206 with all required dependencies installed.

hibachrach commented 8 years ago

Determined issues: usage of declare -A requires bash 4.0 (not installed by default on OS X), mktemp has some platform dependency for which is described here.