mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
Enhance the documentation for pairdrop-cli and add shell commands
This commit is contained in:
17
pairdrop-cli/send-with-pairdrop
Normal file
17
pairdrop-cli/send-with-pairdrop
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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[@]}"
|
||||
Reference in New Issue
Block a user