Skip to content

Commit

Permalink
scripts: Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonjh committed Feb 27, 2021
1 parent d4cd02f commit a6a843c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions make_git_source_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ get_git_info()
if [ -n "${GITTEST}" ] && [ ! -z "${GITTEST}" ]; then
BRANCH=$(git branch --show-current 2> /dev/null)
if [ -n "${RELEASED}" ] && [ ! -z "${RELEASED}" ]; then
GITVER=$(git describe --tags --always 2> /dev/null \
| cut -d "-" -f 1 2> /dev/null)
GITVER=$(git describe --tags --always 2> /dev/null |
cut -d "-" -f 1 2> /dev/null)
else
GITVER=$(git describe --tags --dirty --broken --long --always \
2> /dev/null)
Expand All @@ -41,8 +41,8 @@ get_git_info()
fi

GIT_SOURCE_INFO="DUMA${GIT_OUT}"
GIT_SOURCE_XFRM=$(printf '%s\n' "${GIT_SOURCE_INFO}" \
| sed -e 's/\VERSION_//' -e 's/_/\./g' 2> /dev/null)
GIT_SOURCE_XFRM=$(printf '%s\n' "${GIT_SOURCE_INFO}" |
sed -e 's/\VERSION_//' -e 's/_/\./g' 2> /dev/null)

# shellcheck disable=SC2236
if [ -n "${GIT_SOURCE_XFRM}" ] && [ ! -z "${GIT_SOURCE_XFRM}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion refactoring.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh

# Script to do refactoring of duma.. (put all files in extra subfolders to
# make it somewhat more organized ;-)
Expand Down

0 comments on commit a6a843c

Please sign in to comment.