shell/*: run shellcheck on it

This commit is contained in:
Felix Buehler 2026-02-02 20:13:26 +01:00
parent ff6d6ce2a3
commit de2fa53348
3 changed files with 21 additions and 28 deletions

View file

@ -2,13 +2,13 @@
#correct some fast tipped cds
c() {
if [ "$1" = "d.." ]; then
cd ..;
pwd;
if [ "${1}" = "d.." ]; then
cd .. || return
pwd
fi
if [ -d "$1" ]; then
cd "$1" || exit;
pwd;
if [ -d "${1}" ]; then
cd "${1}" || return
pwd
fi
return 0;
return 0
}