mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
shell/*: fix most shellcheck errors
This commit is contained in:
parent
ced309e5a4
commit
0d8a6f0c01
9 changed files with 67 additions and 53 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue