-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Petter Andersson
committed
Oct 21, 2024
1 parent
40bfd6f
commit 72511ba
Showing
3 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
|
||
if [ -z ${REACHMEE_HELSINGBORG_PATH} ]; then | ||
echo "Missing env variable REACHMEE_HELSINGBORG_PATH"; exit 1 | ||
fi | ||
which php | ||
if [ $? -ne 0 ]; then | ||
echo "PHP command missing or not in path"; exit 1 | ||
fi | ||
cd ${SCRIPT_DIR} | ||
|
||
# Retreive and transform Stratsys export | ||
php ../../../router.php \ | ||
--source ${REACHMEE_HELSINGBORG_PATH} \ | ||
--transform jobposting \ | ||
--outputformat json \ | ||
--output '/tmp/reachmee.json' | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "FAILED to transform request to file ${TMPFILE}" | ||
fi |
This file contains 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
This file contains 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