Skip to content
Snippets Groups Projects
Commit 8592602d authored by Adrian Schmutzler's avatar Adrian Schmutzler Committed by Christian Lamparter
Browse files

base-files: Really check path in get_mac_binary


Currently, path argument is only checked for being not empty.

This changes behavior to actually check whether path exists.

Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
parent b683f1c3
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ get_mac_binary() {
local path="$1"
local offset="$2"
if [ -z "$path" ]; then
if [ -e "$path" ]; then
echo "get_mac_binary: file $path not found!" >&2
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment