From a0eb117ea93ec2a93c5b5a3ca8561c2a727caa0a Mon Sep 17 00:00:00 2001 From: v1s1t0r1sh3r3 Date: Wed, 31 Jul 2024 00:21:36 +0200 Subject: [PATCH] Fix minor bug on paths when selecting a directory instead of a file while saving a trophy file --- CHANGELOG.md | 1 + airgeddon.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b13b89e4..e969764a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 11.31 - Fixed graphics system detection when launched on a headless system using remote X windows + - Fixed minor bug on paths when selecting a directory instead of a file while saving a trophy file ### 11.30 - Added Multi-instance support to launch more than one airgeddon at a time diff --git a/airgeddon.sh b/airgeddon.sh index 037064465..bef5dccba 100755 --- a/airgeddon.sh +++ b/airgeddon.sh @@ -15006,6 +15006,9 @@ function set_absolute_path() { local string_path string_path=$(readlink -f "${1}") + if [ -d "${string_path}" ]; then + string_path="${string_path%/}/" + fi echo "${string_path}" }