mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-05 22:24:04 +00:00
fix(install): correct uninstall.sh URL path (404 → 200)
Fix broken standalone installation by updating GitHub raw URL from main/uninstall.sh to main/installers/uninstall.sh following file reorganization. Changes: - installers/install.sh:284: Update curl URL to correct path - installers/install.ps1:33: Bump version to 2.1.2 - installers/install.sh:34: Bump version to 2.1.2 - VERSION: Bump from 2.1.1 to 2.1.2 Impact: Fixes uninstaller download for standalone installations Breaking Changes: None Security: No vulnerabilities introduced Tests: 68/68 passing
This commit is contained in:
@@ -30,7 +30,7 @@ $InstallMethod = if ($ScriptDir -and ((Test-Path "$ScriptDir\ccs.ps1") -or (Test
|
||||
# IMPORTANT: Update this version when releasing new versions!
|
||||
# This hardcoded version is used for standalone installations (irm | iex)
|
||||
# For git installations, VERSION file is read if available
|
||||
$CcsVersion = "2.1.1"
|
||||
$CcsVersion = "2.1.2"
|
||||
|
||||
# Try to read VERSION file for git installations
|
||||
if ($ScriptDir) {
|
||||
|
||||
@@ -31,7 +31,7 @@ fi
|
||||
# IMPORTANT: Update this version when releasing new versions!
|
||||
# This hardcoded version is used for standalone installations (curl | bash)
|
||||
# For git installations, VERSION file is read if available
|
||||
CCS_VERSION="2.1.1"
|
||||
CCS_VERSION="2.1.2"
|
||||
|
||||
# Try to read VERSION file for git installations
|
||||
if [[ -f "$SCRIPT_DIR/VERSION" ]]; then
|
||||
@@ -281,7 +281,7 @@ if [[ -f "$SCRIPT_DIR/uninstall.sh" ]]; then
|
||||
ln -sf "$CCS_DIR/uninstall.sh" "$INSTALL_DIR/ccs-uninstall"
|
||||
echo "│ ✓ Installed uninstaller"
|
||||
elif [[ "$INSTALL_METHOD" == "standalone" ]] && command -v curl &> /dev/null; then
|
||||
if curl -fsSL https://raw.githubusercontent.com/kaitranntt/ccs/main/uninstall.sh -o "$CCS_DIR/uninstall.sh"; then
|
||||
if curl -fsSL https://raw.githubusercontent.com/kaitranntt/ccs/main/installers/uninstall.sh -o "$CCS_DIR/uninstall.sh"; then
|
||||
chmod +x "$CCS_DIR/uninstall.sh"
|
||||
ln -sf "$CCS_DIR/uninstall.sh" "$INSTALL_DIR/ccs-uninstall"
|
||||
echo "│ ✓ Installed uninstaller"
|
||||
|
||||
Reference in New Issue
Block a user