http://jentyxddh2rf47gd3e43kuebyn2xsv6h72gzh46oe4rxyovvm7xe5ead.onion/src/dotfiles/commit/67c23c96f18187135e8c570add4c8f283443148d.html
base_find_cmd() { - SEARCH_PATH="$1" - readonly SEARCH_PATH - shift + readonly SEARCH_PATH="$1" + [ -d "${SEARCH_PATH}" ] || err "${SEARCH_PATH} is not a directory" + shift find "${SEARCH_PATH}" -type f "$@"
} - # given a directory, print all video files in it.
find_videos() { - base_find_cmd "$1" \( \ - -iname '*.webm' -o \ - -iname '*.mp4' -o \ - -iname '*.mkv' \ - \) + base_find_cmd "$1" \ + \( -iname '*.webm' \ + -o -iname '*.mp4' \ + -o -iname '*.mkv' \) } - #...