From e20ac2c4d91f92ee2c58b9b38cf90cc5da794712 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Fri, 16 Feb 2024 17:51:55 +0700 Subject: [PATCH] Working demo script --- pkgs/clan-vm-manager/demo.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-vm-manager/demo.sh b/pkgs/clan-vm-manager/demo.sh index 53c951d01..7b605f5b4 100755 --- a/pkgs/clan-vm-manager/demo.sh +++ b/pkgs/clan-vm-manager/demo.sh @@ -8,13 +8,15 @@ check_git_tag() { # Change directory to the specified Git repository pushd "$repo_path" > /dev/null 2>&1 + # shellcheck disable=SC2181 if [ $? -ne 0 ]; then echo "Error: Failed to change directory to $repo_path" return 1 fi # Get the current Git tag - local current_tag=$(git describe --tags --exact-match 2>/dev/null) + local current_tag + current_tag=$(git describe --tags --exact-match 2>/dev/null) # Restore the original directory popd > /dev/null 2>&1 @@ -39,7 +41,7 @@ democlan="$1" check_git_tag "$democlan" "v2.2" -check_git_tag "." "v2.2" +check_git_tag "." "v2.3" rm -rf ~/.config/clan