Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Jan 20, 2025
1 parent 333bf29 commit 826bf80
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
8 changes: 5 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/bin/bash
echo "(Re-)Installing Muggle..."
# Change to the directory where the script resides
cd "$(dirname "$0")"
# Change to the directory where the script resides, exit if it fails
cd "$(dirname "$0")" || exit

echo "(Over-)writing GitHub Actions workflow files ..."
cp -f gha/lint.yml ../.github/workflows/lint.yml

echo "(Re-)creating Symbolic Links ..."

./scripts/symlink_ignore.bash --source in_submodule.make --target Makefile
./scripts/symlink_ignore.bash \
--source in_submodule.make \
--target Makefile
./scripts/symlink_ignore.bash \
--source docker-compose.yml \
--target docker-compose.yml
Expand Down
36 changes: 18 additions & 18 deletions scripts/symlink_ignore.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ target=""

# Parse command line options
while [[ $# -gt 0 ]]; do
case $1 in
--source)
source="$2"
shift # past argument
shift # past value
;;
--target)
target="$2"
shift # past argument
shift # past value
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
case $1 in
--source)
source="$2"
shift # past argument
shift # past value
;;
--target)
target="$2"
shift # past argument
shift # past value
;;
*)
echo "Unknown option: $1"
exit 1
;;
esac
done

# Check if required arguments were provided
if [ -z "$source" ] || [ -z "$target" ]; then
echo "Usage: $0 --source <source> --target <target>"
exit 1
echo "Usage: $0 --source <source> --target <target>"
exit 1
fi

original_dir=$(pwd)
Expand Down

0 comments on commit 826bf80

Please sign in to comment.