Skip to content

Commit

Permalink
Fix shell format
Browse files Browse the repository at this point in the history
  • Loading branch information
cloderic committed Jan 17, 2024
1 parent 52bcb1f commit d4e6220
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 47 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ max_line_length = 120

[{*.py,*.yml}]
indent_size = 4

# Ignore the entire ".venv" directory.
[.venv/**]
ignore = true
14 changes: 7 additions & 7 deletions bin/docker_entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ export DISPLAY=:0
display=0
file="/tmp/.X11-unix/X$display"
for i in $(seq 1 10); do
if [ -e "$file" ]; then
break
fi
if [ -e "$file" ]; then
break
fi

echo "Waiting for $file to be created (try $i/10)"
sleep "$i"
echo "Waiting for $file to be created (try $i/10)"
sleep "$i"
done
if ! [ -e "$file" ]; then
echo "Timing out: $file was not created"
exit 1
echo "Timing out: $file was not created"
exit 1
fi

exec "$@"
40 changes: 20 additions & 20 deletions scripts/create_release_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@ dry_run=0

while [[ "$1" != "" ]]; do
case $1 in
--dry-run)
dry_run=1
;;
--help | -h)
usage
exit 0
;;
*)
if [[ -z "${version}" ]]; then
input_version=$1
validated_version=$(validate_version "${input_version}")
if [[ -z "${validated_version}" ]]; then
printf "%s: provided version is invalid.\n\n" "${input_version}"
usage
exit 1
fi
version="${validated_version}"
else
printf "%s: unrecognized argument.\n\n" "$1"
--dry-run)
dry_run=1
;;
--help | -h)
usage
exit 0
;;
*)
if [[ -z "${version}" ]]; then
input_version=$1
validated_version=$(validate_version "${input_version}")
if [[ -z "${validated_version}" ]]; then
printf "%s: provided version is invalid.\n\n" "${input_version}"
usage
exit 1
fi
;;
version="${validated_version}"
else
printf "%s: unrecognized argument.\n\n" "$1"
usage
exit 1
fi
;;
esac
shift
done
Expand Down
40 changes: 20 additions & 20 deletions scripts/tag_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ dry_run=0

while [[ "$1" != "" ]]; do
case $1 in
--dry-run)
dry_run=1
;;
--help | -h)
usage
exit 0
;;
*)
if [[ -z "${version}" ]]; then
input_version=$1
validated_version=$(validate_version "${input_version}")
if [[ -z "${validated_version}" ]]; then
printf "%s: provided version is invalid.\n\n" "${input_version}"
usage
exit 1
fi
version="${validated_version}"
else
printf "%s: unrecognized argument.\n\n" "$1"
--dry-run)
dry_run=1
;;
--help | -h)
usage
exit 0
;;
*)
if [[ -z "${version}" ]]; then
input_version=$1
validated_version=$(validate_version "${input_version}")
if [[ -z "${validated_version}" ]]; then
printf "%s: provided version is invalid.\n\n" "${input_version}"
usage
exit 1
fi
;;
version="${validated_version}"
else
printf "%s: unrecognized argument.\n\n" "$1"
usage
exit 1
fi
;;
esac
shift
done
Expand Down

0 comments on commit d4e6220

Please sign in to comment.