Download pairdrop-cli/send-with-pairdrop from gdshli/drop: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/gdshli/drop/resolve/main/pairdrop-cli/send-with-pairdrop
- Command line
-
hf download hf://spaces/gdshli/drop/pairdrop-cli/send-with-pairdrop
-
curl -L -o send-with-pairdrop https://huggingface.co/spaces/gdshli/drop/resolve/main/pairdrop-cli/send-with-pairdrop
297 Bytes
| # Initialize an array | |
| lines=() | |
| # Read each line into the array | |
| while IFS= read -r line; do | |
| lines+=("$line") | |
| done <<< "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | |
| # Get the length of the array | |
| length=${#lines[@]} | |
| # Remove the last entry | |
| unset 'lines[length-1]' | |
| pairdrop "${lines[@]}" |