We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f426e3 commit 8f91b6cCopy full SHA for 8f91b6c
1 file changed
action.yml
@@ -209,7 +209,12 @@ runs:
209
else
210
KEYSTORE_TARGET_PATH="$ANDROID_SOURCE_DIR/${{ inputs.keystore-path }}"
211
fi
212
- echo "Keystore target path: $KEYSTORE_TARGET_PATH"
+
213
+ echo "Keystore target path before normalizing: $KEYSTORE_TARGET_PATH"
214
+ while [[ "$KEYSTORE_TARGET_PATH" == *"/../"* ]]; do
215
+ KEYSTORE_TARGET_PATH=$(echo "$KEYSTORE_TARGET_PATH" | sed 's|/[^/][^/]*/\.\./|/|')
216
+ done
217
+ echo "Keystore target path after normalizing: $KEYSTORE_TARGET_PATH"
218
mkdir -p "$(dirname "$KEYSTORE_TARGET_PATH")" || {
219
echo "Failed to create keystore directory: $(dirname "$KEYSTORE_TARGET_PATH")"
220
exit 1
0 commit comments