Skip to content

Commit

Permalink
Blocksworld: support relative links.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Nov 25, 2021
1 parent e05e31f commit 9bf57e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blocksworld/blocksworld
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#! /bin/bash

set -e
set -u
set -euo pipefail

# Either 3 or 4.
OPS=$1
OPS=$1 # Either 3 or 4.
BLOCKS=$2

BS=$(dirname "$0")/bwstates.1/bwstates
TR=$(dirname "$0")/${OPS}ops/2pddl/2pddl
# Get full directory name of the script (https://stackoverflow.com/a/246128).
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

BS=${SCRIPT_DIR}/bwstates.1/bwstates
TR=${SCRIPT_DIR}/${OPS}ops/2pddl/2pddl

${BS} -s 2 -n ${BLOCKS} > STATES
${TR} -d STATES -n ${BLOCKS}
Expand Down

0 comments on commit 9bf57e1

Please sign in to comment.