mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-09 03:45:44 +08:00
Update and rename cmurl to cmurl.sh
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL=$1
|
||||
TARGET=$2
|
||||
DIRECTORY=$3
|
||||
BYPY='/root/bypy/bypy.py'
|
||||
|
||||
URL=$(curl -k -s $URL |grep $TARGET |grep -v html| sed -n "s|.*href=\"\([^\"]*\).*|$URL\1|p")
|
||||
|
||||
@@ -31,8 +31,7 @@ wget $URL > $ZIP.wget.log 2>&1
|
||||
|
||||
md5sum $ZIP > $ZIP.md5
|
||||
|
||||
alias bypy='/root/bypy/bypy.py'
|
||||
bypy -v -s 10MB syncup . cyanogenmod
|
||||
$BYPY -v -s 10MB syncup . cyanogenmod
|
||||
|
||||
if [ -f "$DIRECTORY/$ZIP" ];then
|
||||
rm "$DIRECTORY/$ZIP"
|
Reference in New Issue
Block a user