瀏覽代碼

Ports: Fix install actions for the bash port when re-installing the port

When re-installing the port the symlink already exists which causes
'ln -s' to fail.
Gunnar Beutner 4 年之前
父節點
當前提交
f43f4a16e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Ports/bash/package.sh

+ 1 - 1
Ports/bash/package.sh

@@ -17,5 +17,5 @@ build() {
 
 post_install() {
     mkdir -p "${SERENITY_BUILD_DIR}/Root/bin"
-    ln -s /usr/local/bin/bash "${SERENITY_BUILD_DIR}/Root/bin/bash"
+    ln -sf /usr/local/bin/bash "${SERENITY_BUILD_DIR}/Root/bin/bash"
 }