Skip to content

Instantly share code, notes, and snippets.

View DarremMolko's full-sized avatar

Darrem Molko DarremMolko

  • Argentina
  • 01:47 (UTC -03:00)
View GitHub Profile
@DarremMolko
DarremMolko / alist-upload.sh
Last active March 17, 2023 20:55
Upload a file using Alist V3 and prints its download link for easy sharing.
#!/bin/bash
# Set default UPLOAD_PATH value
UPLOAD_PATH="/path/to/upload/to"
# Use getopts to check for the -d switch and set the UPLOAD_PATH value accordingly
while getopts "d:" opt; do
case $opt in
d)
UPLOAD_PATH=$OPTARG