We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432ac9e commit 28b77dbCopy full SHA for 28b77db
1 file changed
install.sh
@@ -20,7 +20,8 @@ function backup() {
20
function link() {
21
# Create symlinks
22
while read -r file; do
23
- local link="${HOME}/$(basename "${file}")"
+ local link
24
+ link="${HOME}/$(basename "${file}")"
25
26
# Ensure symlink is actually a dotfile
27
if [[ "$(basename "${link}")" != .* ]]; then
@@ -35,7 +36,8 @@ function link() {
35
36
37
# Back up the existing file
38
if [[ -e "${link}" ]]; then
- local backup="$(backup "${link}")"
39
+ local backup
40
+ backup="$(backup "${link}")"
41
echo "Moving: ${link} -> ${backup}"
42
mv "${link}" "${backup}"
43
fi
0 commit comments