Updates CLI to work with OSX base64
This commit is contained in:
parent
ee820ed6e0
commit
82138c06f3
1 changed files with 10 additions and 2 deletions
|
@ -106,7 +106,11 @@ sendFiles()
|
||||||
zip -q -b /tmp/ -r "$zipPath" "$path"
|
zip -q -b /tmp/ -r "$zipPath" "$path"
|
||||||
zip -q -b /tmp/ "$zipPathTemp" "$zipPath"
|
zip -q -b /tmp/ "$zipPathTemp" "$zipPath"
|
||||||
|
|
||||||
|
if [[ $OS == "Mac" ]];then
|
||||||
|
hash=$(base64 -i "$zipPathTemp")
|
||||||
|
else
|
||||||
hash=$(base64 -w 0 "$zipPathTemp")
|
hash=$(base64 -w 0 "$zipPathTemp")
|
||||||
|
fi
|
||||||
|
|
||||||
# remove temporary temp file
|
# remove temporary temp file
|
||||||
rm "$zipPathTemp"
|
rm "$zipPathTemp"
|
||||||
|
@ -116,8 +120,12 @@ sendFiles()
|
||||||
# Create zip file temporarily to send file
|
# Create zip file temporarily to send file
|
||||||
zip -q -b /tmp/ "$zipPath" "$path"
|
zip -q -b /tmp/ "$zipPath" "$path"
|
||||||
|
|
||||||
|
if [[ $OS == "Mac" ]];then
|
||||||
|
hash=$(base64 -i "$zipPath")
|
||||||
|
else
|
||||||
hash=$(base64 -w 0 "$zipPath")
|
hash=$(base64 -w 0 "$zipPath")
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# remove temporary temp file
|
# remove temporary temp file
|
||||||
rm "$zipPath"
|
rm "$zipPath"
|
||||||
|
|
Loading…
Reference in a new issue