Skip to content

Commit

Permalink
Merge pull request #778 from zalando/script-improvements
Browse files Browse the repository at this point in the history
feat: improve script quality (#778)
  • Loading branch information
tkrop committed Oct 17, 2023
2 parents 9382597 + 267d6f9 commit f5c3866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions scripts/build-css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

set -ex #print commands, exit on failure

pushd `dirname $0` > /dev/null
GUIDELINES_DIR=`pwd`
pushd "$(dirname "${0}")" > /dev/null
GUIDELINES_DIR="$(pwd)"
popd > /dev/null

STYLESHEET_FACTORY_DIR=`mktemp -d`
mkdir -p ${STYLESHEET_FACTORY_DIR}
STYLESHEET_FACTORY_DIR="$(mktemp -d)"
mkdir -p "${STYLESHEET_FACTORY_DIR}"

git clone [email protected]:asciidoctor/asciidoctor-stylesheet-factory.git ${STYLESHEET_FACTORY_DIR}
cd ${STYLESHEET_FACTORY_DIR} && bundle install
git clone [email protected]:asciidoctor/asciidoctor-stylesheet-factory.git "${STYLESHEET_FACTORY_DIR}"
cd "${STYLESHEET_FACTORY_DIR}" && bundle install

cp -r ${GUIDELINES_DIR}/sass/* ${STYLESHEET_FACTORY_DIR}/sass
cd ${STYLESHEET_FACTORY_DIR} && compass compile
cp ${STYLESHEET_FACTORY_DIR}/stylesheets/zalando.css ${GUIDELINES_DIR}/
cp -r "${GUIDELINES_DIR}/sass/"* "${STYLESHEET_FACTORY_DIR}/sass"
cd "${STYLESHEET_FACTORY_DIR}" && compass compile
cp "${STYLESHEET_FACTORY_DIR}/stylesheets/zalando.css" "${GUIDELINES_DIR}/"
2 changes: 1 addition & 1 deletion scripts/create-zally-issue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

GH_REPO="github.com/zalando/restful-api-guidelines.git"
#GH_REPO="github.com/zalando/restful-api-guidelines.git"
GH_REPO_URL="https://api.github.com/repos/zalando/restful-api-guidelines"
ZALLY_REPO_URL="https://api.github.com/repos/zalando/zally"

Expand Down

0 comments on commit f5c3866

Please sign in to comment.