Skip to content

Commit 28b77db

Browse files
committed
ShellCheck
1 parent 432ac9e commit 28b77db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function backup() {
2020
function link() {
2121
# Create symlinks
2222
while read -r file; do
23-
local link="${HOME}/$(basename "${file}")"
23+
local link
24+
link="${HOME}/$(basename "${file}")"
2425

2526
# Ensure symlink is actually a dotfile
2627
if [[ "$(basename "${link}")" != .* ]]; then
@@ -35,7 +36,8 @@ function link() {
3536

3637
# Back up the existing file
3738
if [[ -e "${link}" ]]; then
38-
local backup="$(backup "${link}")"
39+
local backup
40+
backup="$(backup "${link}")"
3941
echo "Moving: ${link} -> ${backup}"
4042
mv "${link}" "${backup}"
4143
fi

0 commit comments

Comments
 (0)