#!/bin/sh if command -v sxiv >/dev/null 2>&1; then if [ -d "${@: -1}" ] || [ -h "${@: -1}" ]; then sxiv -t "$@" else sxiv "$@" fi