From 70032a8388e11c8f5b05838899502a78c074213c Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 5 Aug 2026 21:45:17 +0000 Subject: [PATCH] Update README.md --- README.md | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/README.md b/README.md index d38afc3..97ef562 100644 --- a/README.md +++ b/README.md @@ -32,35 +32,4 @@ After this you will be prompted to input the amount of hours you want the file t Finally once the file has uploaded a shareable link will be returned in the terminal -``` bash -#!/bin/bash - -filename="$1" - -uploadtime() { - -echo -e "\nbe in the directory of the file you want to upload\ninput how long you want the file to be uploaded for" -read -p "valid options (hours) 1, 12, 24, 72: " time - -case "$time" in - 1|12|24|72 ) - time+="h" - ;; - * ) echo "invalid upload time" - uploadtime - ;; -esac - -} - -main(){ - -uploadtime - -echo "uploading..." -curl -F "reqtype=fileupload" -F "time=$time" -F "fileToUpload=@$filename" https://litterbox.catbox.moe/resources/internals/api.php - -} - -[ -z "$1" ] && echo -e "no file provided\nusage is catboxuploader yourfilehere\nsuch as: catboxuploader 123.txt" || main -``` \ No newline at end of file +The script checks that the file exists and only one argument is provided \ No newline at end of file