Skip to content

Commit 03d8818

Browse files
committed
🚑️ Fixed separate variable declaration: ShellCheck warning (SC2155)
1 parent f99e3ff commit 03d8818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flagsearch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ usage() {
7070
log_flag_found() {
7171
local type="$1"
7272
local file="$2"
73-
local abs_path=$(realpath "$file")
73+
local abs_path
74+
abs_path=$(realpath "$file")
7475

7576
if [ "$type" = "file" ]; then
7677
echo -e "${GREEN}[+] Found file: $abs_path${RESET}"

0 commit comments

Comments
 (0)