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

transfer.sh replaced with oshi.at #875

Merged
merged 1 commit into from
May 2, 2024
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
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