Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in find command. #273

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sources/assets/exegol/load_supported_setups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function deploy_apt() {
grep -vE "^(\s*|#.*)$" <"$MY_SETUP_PATH/apt/keys.list" | while IFS= read -r key_url; do
wget -nv "$key_url" -O "$tmpaptkeys/$(echo "$key_url" | md5sum | cut -d ' ' -f1).key"
done
if [[ -n $(find -type f -name "*.key" "$tmpaptkeys") ]]; then
if [[ -n $(find "$tmpaptkeys" -type f -name "*.key") ]]; then
gpg --no-default-keyring --keyring="$tmpaptkeys/user_custom.gpg" --batch --import "$tmpaptkeys"/*.key &&
gpg --no-default-keyring --keyring="$tmpaptkeys/user_custom.gpg" --batch --output /etc/apt/trusted.gpg.d/user_custom.gpg --export --yes &&
chmod 644 /etc/apt/trusted.gpg.d/user_custom.gpg
Expand Down Expand Up @@ -205,7 +205,7 @@ function deploy_bloodhound_customqueries_merge() {
[[ ! -d "$cq_merge_directory" ]] && cp -r /.exegol/skel/bloodhound/customqueries_merge "$cq_merge_directory"
if \
[[ -f "$bh_config_homedir/customqueries.json" ]] && \
[[ -n $(find -type f -name "*.json" "$cq_merge_directory") ]]; then
[[ -n $(find "$cq_merge_directory" -type f -name "*.json") ]]; then
bqm --verbose --ignore-default --output-path "$bqm_output_file" -i "$cq_merge_directory,$bh_config_homedir/customqueries.json"
fi
}
Expand Down Expand Up @@ -244,7 +244,7 @@ function deploy_bloodhound() {
function trust_ca_certs_in_firefox() {
colorecho "Trusting user CA certificates in Firefox"
if [[ -d "$MY_SETUP_PATH/firefox/certs" ]]; then
for file in $(find -type f "$MY_SETUP_PATH/firefox/certs"); do
for file in $(find "$MY_SETUP_PATH/firefox/certs" -type f); do
if [[ -f "$file" ]]; then
if [[ "$file" == *.[dD][eE][rR] ]]; then
local base_filename_without_extension
Expand Down