Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
fixing sed command on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Chen committed May 28, 2019
1 parent 0f71d5f commit 4314c16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/iota_cclient/gen_hash_container.sh
Expand Up @@ -10,7 +10,11 @@ for HASH_TYPE in ${TYPE_LIST[@]}; do
HASH_FILE_NAME=${FILE_NAME/hash/hash${HASH_SIZE}}
echo "cp ${HASH_FILE} ${HASH_TEMPLATE_DIR}/${HASH_FILE_NAME}"
cp ${HASH_FILE} ${HASH_TEMPLATE_DIR}/${HASH_FILE_NAME}
sed -i "s/{SIZE}/${HASH_SIZE}/g" ${HASH_TEMPLATE_DIR}/${HASH_FILE_NAME}
if [[ "$OSTYPE" == "darwin" ]]; then
sed -i.bak "s/{SIZE}/${HASH_SIZE}/g" ${HASH_TEMPLATE_DIR}/${HASH_FILE_NAME}
else
sed -i "s/{SIZE}/${HASH_SIZE}/g" ${HASH_TEMPLATE_DIR}/${HASH_FILE_NAME}
fi
done
done
done

0 comments on commit 4314c16

Please sign in to comment.