From 352a293f12061fdca88cb6f23752be43b89e8b0c Mon Sep 17 00:00:00 2001 From: msleaveamix Date: Mon, 4 Nov 2024 12:48:10 +0100 Subject: [PATCH] [fix] arch_post_update_update_boot.sh : fix test if symlink exists --- arch_post_update_update_boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch_post_update_update_boot.sh b/arch_post_update_update_boot.sh index 014a0b0..de5b404 100755 --- a/arch_post_update_update_boot.sh +++ b/arch_post_update_update_boot.sh @@ -54,7 +54,7 @@ mkdir $ARCH_BOOT_DST_CURRENT_VERSION || ask_overwrite; ( cd $ARCH_BOOT_DST; # Re-link the good version - test -f $BOOT_SYMLINK && rm $BOOT_SYMLINK; + test -h $BOOT_SYMLINK && rm $BOOT_SYMLINK; ln -s $CURRENT_VERSION current; )