shell/*: fix most shellcheck errors

This commit is contained in:
Felix Buehler 2021-12-06 12:41:02 +01:00
parent ced309e5a4
commit 0d8a6f0c01
9 changed files with 67 additions and 53 deletions

View file

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