Skip to content

Commit

Permalink
Clean up shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Dec 8, 2023
1 parent ae190b8 commit cdb4c1a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions scripts/build-site
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/sh
#!/bin/bash
#
# Builds the junixsocket website.
#
# Copyright 2023 by Christian Kohlschütter
# SPDX-License-Identifier: Apache-2.0
#
cd "$(dirname $0)"/..
#
set -e
dirname=$(dirname "$0")
cd "${dirname}/.."
junixsocketDir=$(pwd)

(
Expand Down
4 changes: 3 additions & 1 deletion scripts/reformat-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
# SPDX-License-Identifier: Apache-2.0
#

cd "$(dirname $0)"/..
set -e
dirname=$(dirname "$0")
cd "${dirname}/.."
mvn process-sources -Dreformat -Dignorant -pl \!junixsocket-native,\!junixsocket-native-cross,\!junixsocket-native-common,\!junixsocket-native-custom
4 changes: 3 additions & 1 deletion scripts/run-errorprone-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# SPDX-License-Identifier: Apache-2.0
#

cd "$(dirname $0)"/..
set -e
dirname=$(dirname "$0")
cd "${dirname}/.."

opts=()
if [[ $#@ -eq 0 ]]; then
Expand Down

0 comments on commit cdb4c1a

Please sign in to comment.