Rename SCRIPT_DIR to REPO_DIR for clarity
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
echo "==> 安装 yay..."
|
echo "==> 安装 yay..."
|
||||||
if ! command -v yay &> /dev/null; then
|
if ! command -v yay &> /dev/null; then
|
||||||
@@ -17,7 +17,7 @@ yay -S --needed --noconfirm dcli-arch-git
|
|||||||
|
|
||||||
echo "==> 链接配置..."
|
echo "==> 链接配置..."
|
||||||
rm -rf ~/.config/arch-config
|
rm -rf ~/.config/arch-config
|
||||||
ln -sf "$SCRIPT_DIR/arch-config" ~/.config/arch-config
|
ln -sf "$REPO_DIR/arch-config" ~/.config/arch-config
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ Bootstrap 完成!"
|
echo "✓ Bootstrap 完成!"
|
||||||
|
|||||||
Reference in New Issue
Block a user