Skip to content

Commit

Permalink
Merge pull request #875 from six2dez/dev
Browse files Browse the repository at this point in the history
transfer.sh replaced with oshi.at
  • Loading branch information
six2dez authored May 2, 2024
2 parents 788e0d2 + 895c0d7 commit f7c6380
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ function emails() {
echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"
}

python3 LeakSearch.py -k $domain -o ${dir}/.tmp/passwords.txt 2>>"$LOGFILE" || {
python3 LeakSearch.py -k $domain -o ${dir}/.tmp/passwords.txt 1>>"$LOGFILE" || {
echo "LeakSearch command failed"
}

Expand Down Expand Up @@ -2742,13 +2742,13 @@ function transfer {
fi
if [[ -d $file ]]; then
file_name="$file_name.zip"
(cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
(cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://oshi.at" | tee /dev/null
else
cat "$file" | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
cat "$file" | curl --progress-bar --upload-file "-" "https://oshi.at" | tee /dev/null
fi
else
file_name=$1
curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null
curl --progress-bar --upload-file "-" "https://oshi.at" | tee /dev/null
fi
}

Expand All @@ -2760,7 +2760,7 @@ function sendToNotify {
NOTIFY_CONFIG=~/.config/notify/provider-config.yaml
fi
if [[ -n "$(find "${1}" -prune -size +8000000c)" ]]; then
printf '%s is larger than 8MB, sending over transfer.sh\n' "${1}"
printf '%s is larger than 8MB, sending over oshi.at\n' "${1}"
transfer "${1}" | notify -silent
return 0
fi
Expand Down

0 comments on commit f7c6380

Please sign in to comment.