Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 authored May 9, 2024
1 parent 740f10d commit 92d284d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _plugins/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ set_target() {
# Generate id from the Structure
[[ -z "$SPIN" ]] && if [[ "$1" != "$2" ]]; then SPIN=0; else SPIN=13; fi
if [[ -n "$CELL" ]]; then
if (( $CELL == 0 )); then MOD=7; else MOD=13; fi
SPANPLUS=$(($SPAN + 1))
if (( $CELL == 0 )); then MOD=7; else MOD=13; fi
if (( $SPANPLUS == $MOD )); then
SPANPLUS=0
CELLPLUS=$(($CELL + 1))
if (( $CELLPLUS == 12 )); then
CELLPLUS=0
fi
if (( $CELLPLUS == 12 )); then CELLPLUS=0; fi
else
CELLPLUS=$(($CELL + 0))
fi

echo " spin: [${CELLPLUS}, ${SPANPLUS}]" >> /maps/_config.yml
echo " pinned: [$(cat /tmp/pinned_repo)]" >> /maps/_config.yml
echo " organization: [$(cat /tmp/user_orgs)]" >> /maps/_config.yml
Expand Down

0 comments on commit 92d284d

Please sign in to comment.