File: 06-test-dl.sh

package info (click to toggle)
megatools 1.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 7,279; sh: 135; makefile: 3
file content (11 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
source ./config

megadl --help

LINK=`megals $ROPTS --export /Root/TestDir/test.dat | cut -d ' ' -f 1`

rm -f test-dl.dat
megadl --path test-dl.dat "$LINK"

cmp test.dat test-dl.dat || echo "=== FAILED ==="