contrib/testcmds.fish: use base64 instead of xxd
more widely available command
This commit is contained in:
parent
b525f09487
commit
38ab542695
@ -32,7 +32,7 @@ function sachet_upload -d "uploads a file"
|
|||||||
set URL (http --session=$_flag_session post $BASENAME/files file_name=$FNAME | tee /dev/tty | jq -r .url)
|
set URL (http --session=$_flag_session post $BASENAME/files file_name=$FNAME | tee /dev/tty | jq -r .url)
|
||||||
http --session=$_flag_session -f post $BASENAME/$URL/content \
|
http --session=$_flag_session -f post $BASENAME/$URL/content \
|
||||||
upload@$argv \
|
upload@$argv \
|
||||||
dzuuid=(cat /dev/urandom | xxd -ps | head -c 32) \
|
dzuuid=(cat /dev/urandom | base64 | head -c 32) \
|
||||||
dzchunkindex=0 \
|
dzchunkindex=0 \
|
||||||
dztotalchunks=1
|
dztotalchunks=1
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user