minor improvement in fspget, now checking that the uri begins with fsp://
This commit is contained in:
parent
052bae42dc
commit
0f2bbac0f0
8
setup.sh
8
setup.sh
|
|
@ -55,6 +55,10 @@ alias fcd='set -f;_fcd'
|
|||
|
||||
####something like wget emulation####
|
||||
_fspget() {
|
||||
usage="echo \"Usage: fsp://[host]:[port]/path/to/file\""
|
||||
|
||||
case $1 in
|
||||
fsp://*)
|
||||
FSP_HOST=$(echo $1|awk -F"/" '{print $3}'|awk -F":" '{print $1}')
|
||||
FSP_DIR=$(dirname $(echo $1|sed -e 's/fsp:\/\/.*:[0-9]*\//\//g'))
|
||||
|
||||
|
|
@ -69,5 +73,9 @@ _fspget() {
|
|||
fver
|
||||
fget $filename
|
||||
echo "DONE"
|
||||
;;
|
||||
*)
|
||||
eval $usage
|
||||
esac
|
||||
}
|
||||
alias fspget='set -f;_fspget'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user