Skip to content

Commit

Permalink
Fix: Quoted to satisfy the spellchecker
Browse files Browse the repository at this point in the history
the spell checker didn’t like leaving the which unquoted command to prevent splitting “which” was irrelevant since I’m only looking for the exit status not the output.
  • Loading branch information
asamahy committed Aug 5, 2024
1 parent 8e638ca commit 09d09d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ update_script() {

where_iina() {
# check if iina's symlink is present
if [ ! $(which iina) ]; then
if [ ! "$(which iina)" ]; then
# set the location of iina-cli to /Appliations directory
player_function="/Applications/IINA.app/Contents/MacOS/iina-cli"
fi
Expand All @@ -123,7 +123,7 @@ dep_ch() {
for dep; do
# check if iina is the player_function and if iina is installed either in PATH or in /Applications.
if [ "$dep " = "iina " ]; then
if [ $(which iina) ] || [ -f "/Applications/IINA.app/Contents/MacOS/iina-cli" ]; then
if [ "$(which iina)" ] || [ -f "/Applications/IINA.app/Contents/MacOS/iina-cli" ]; then
player_function="iina";
else
die "Program \"iina\" not found. Please install it."
Expand Down

0 comments on commit 09d09d3

Please sign in to comment.