Skip to content

Commit c727b72

Browse files
committed
linter
1 parent 28b750d commit c727b72

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- checkout
99
- run:
10-
name: Setup Lando on Linux
10+
name: Ins Lando on Linux
1111
command: |
1212
pwd
1313
env

setup-lando.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,10 @@ wait_for_user() {
802802
auto_link() {
803803
local source="$1"
804804
local dest="$2"
805-
local perm_source="$(find_first_existing_parent "$source")"
806-
local perm_dest="$(find_first_existing_parent "$dest")"
805+
local perm_source
806+
local perm_dest
807+
perm_source="$(find_first_existing_parent "$source")"
808+
perm_dest="$(find_first_existing_parent "$dest")"
807809

808810
if have_sudo_access && [[ ! -w "$perm_source" || ! -w "$perm_dest" ]]; then
809811
execute_sudo ln -sf "$source" "$dest"
@@ -814,7 +816,8 @@ auto_link() {
814816

815817
auto_mkdirp() {
816818
local dir="$1"
817-
local perm_dir="$(find_first_existing_parent "$dir")"
819+
local perm_dir
820+
perm_dir="$(find_first_existing_parent "$dir")"
818821

819822
if have_sudo_access && [[ ! -w "$perm_dir" ]]; then
820823
execute_sudo mkdir -p "$dir"
@@ -826,8 +829,10 @@ auto_mkdirp() {
826829
auto_mv() {
827830
local source="$1"
828831
local dest="$2"
829-
local perm_source="$(find_first_existing_parent "$source")"
830-
local perm_dest="$(find_first_existing_parent "$dest")"
832+
local perm_source
833+
local perm_dest
834+
perm_source="$(find_first_existing_parent "$source")"
835+
perm_dest="$(find_first_existing_parent "$dest")"
831836

832837
if have_sudo_access && [[ ! -w "$perm_source" || ! -w "$perm_dest" ]]; then
833838
execute_sudo mv -f "$source" "$dest"
@@ -839,7 +844,8 @@ auto_mv() {
839844
auto_curl_n_x() {
840845
local dest="$1"
841846
local url="$2"
842-
local perm_dir="$(find_first_existing_parent "$dest")"
847+
local perm_dir
848+
perm_dir="$(find_first_existing_parent "$dest")"
843849

844850
if have_sudo_access && [[ ! -w "$perm_dir" ]]; then
845851
execute_sudo curl \

0 commit comments

Comments
 (0)