Skip to content

Commit 3164672

Browse files
refactor: delcare and assign separately
1 parent d75fbdc commit 3164672

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/link-git-commands.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ fi
2424
# Function to create symlinks or simulate creating them
2525
create_symlink() {
2626
local script=$1
27-
local symlink_path="$BIN_DIR/$(basename "$script")"
27+
local symlink_path
28+
symlink_path="$BIN_DIR/$(basename "$script")"
29+
2830
if [ -x "$script" ]; then # Check if the script file is executable
2931
if $DRY_RUN; then
3032
echo "Dry run: Would create symlink for $(basename "$script")"

0 commit comments

Comments
 (0)