[__git] Make shellcheck happy :-)
This commit is contained in:
parent
a40025d842
commit
376fab8a66
2 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
destination="/$__object_id"
|
||||
|
||||
os="$(cat "$__global/explorer/os")"
|
||||
state_should="$(cat "$__object/parameter/state")"
|
||||
owner="$(cat "$__object/parameter/owner")"
|
||||
|
||||
|
@ -14,7 +13,7 @@ if [ "$state_should" = "present" ] && [ -d "$destination/.git" ]; then
|
|||
# Whenever possible run git as non-root, see history of CVEs.
|
||||
branch="$(su -m "$git_user" -c "git -C '$destination' rev-parse --abbrev-ref HEAD")"
|
||||
if [ "$branch" != "HEAD" ]; then
|
||||
echo $branch
|
||||
echo "$branch"
|
||||
else
|
||||
# We are using tags
|
||||
su -m "$git_user" -c "git -C '$destination' describe --always --tags --abbrev=0"
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
destination="/$__object_id"
|
||||
|
||||
os="$(cat "$__global/explorer/os")"
|
||||
state_should="$(cat "$__object/parameter/state")"
|
||||
branch_should="$(cat "$__object/parameter/branch")"
|
||||
owner="$(cat "$__object/parameter/owner")"
|
||||
|
|
Loading…
Reference in a new issue