mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
fix: Shell linting (#328)
Cleanup various shell linting issues * Use `/usr/bin/env` consistently for better platform compatibility. * SC2317 (info): Command appears to be unreachable. * SC2002 (style): Useless cat. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Check if a commit message was provided
|
||||
if [ -z "$1" ]; then
|
||||
@@ -26,7 +26,7 @@ git checkout -b release-temp
|
||||
if git ls-remote --heads public main | grep -q 'refs/heads/main'; then
|
||||
git reset --soft public/main
|
||||
else
|
||||
git reset --soft $(git rev-list --max-parents=0 HEAD)
|
||||
git reset --soft "$(git rev-list --max-parents=0 HEAD)"
|
||||
fi
|
||||
|
||||
# Merge changes from main
|
||||
|
||||
Reference in New Issue
Block a user