Last active
September 6, 2022 12:07
-
-
Save argahsuknesib/2bba5e88f8240aa77d751a74b5b31ecd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for tripleFile in *.nt; do | |
echo "PUSHING DATA INTO THE SOLID PODS" | |
echo "================================" | |
if [ -z "$baseURL"] | |
then | |
echo "baseURL is not specified, please specify a base URL." | |
elif [ -z "$timestamp"] | |
then | |
echo "timestamp argument is not specified" | |
elif [-z "$dataFile"] | |
then | |
echo "dataFile argument is not specified" | |
elif [-z "$versioningConcept"] | |
then | |
echo "valid versioning concept is not specified" | |
elif [-z "$bucketSize"] | |
then | |
echo "valid bucket size is not specified" | |
elif [-z "$authentication"] | |
then | |
echo "specifiy an authentication credential file, or None in case" | |
else | |
npx ts-node ./SolidEventSourcing/EventSource/index.ts $tripleFile "$baseURL" "$versioningConcept" "$bucketSize" "$authentication" "$timestamp" | |
fi | |
echo | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment