Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _get_self_dir () {
# this appears to work across bash and zsh, but may not work on other shells :(
(
SCRIPT_DIR=''
pushd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" > /dev/null && {
pushd "$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" > /dev/null && {
SCRIPT_DIR="$PWD"
# shellcheck disable=SC2164
popd > /dev/null 2>&1
Expand Down Expand Up @@ -291,7 +291,7 @@ cite ()

typeset keyword
for keyword in "$@"; do
type "$keyword" > /dev/null || eval "$keyword() { :; }"
type "$keyword" &> /dev/null || eval "$keyword() { :; }"
done
}

Expand Down Expand Up @@ -364,7 +364,7 @@ glossary ()
typeset functionlist="$(_typeset_functions_about)"
typeset maxwidth=$(_longest_function_name_length "$functionlist" | awk '{print $1 + 5}')

# shellcheck disable=SC2116,SC2086
# shellcheck disable=SC2116,SC2086
for func in $(echo "$functionlist"); do

if [ "X${targetgroup}X" != "XX" ]; then
Expand Down