Codemagic post-clone script failed on base64 command not found

Viewed 587

I'm trying to decode environment variable value on Codemagic via custom script and get the next error:

post-clone script failed on base64 decode. The command could not be found

The script what I use:

#!/bin/sh

echo $ANDROID_FIREBASE_JSON | base64 --decode > $FCI_BUILD_DIR/android/app/google-services.json
echo $IOS_FIREBASE_JSON | base64 --decode > $FCI_BUILD_DIR/ios/Runner/GoogleService-Info.plist
1 Answers
Related