From 59bd3613d15da263d19fd829e6cb8942f75ffd1e Mon Sep 17 00:00:00 2001 From: "k.mesniankin" Date: Tue, 5 Nov 2024 17:03:34 +0300 Subject: [PATCH] fix: setup script --- scripts/setup.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 0b3df71..1f41078 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -251,10 +251,10 @@ configure_qbittorrent() { fi elif $MACOS; then sed -i '' "/^\[Preferences\]/a\\ -$1=$2\\" $CONFIG_FILE +$1=$2" $CONFIG_FILE else sed -i "/^\[Preferences\]/a\\ -$1=$2\\" $CONFIG_FILE +$1=$2" $CONFIG_FILE fi } @@ -433,9 +433,9 @@ print_green "Logged out successfully!" echo "" if $LINUX || $MACOS; then - chmod +x start.sh - chmod +x stop.sh - chmod +x update.sh + chmod +x ./start.sh + chmod +x ./stop.sh + chmod +x ./update.sh fi if $MACOS; then @@ -443,19 +443,19 @@ if $MACOS; then -e "s|{{VERSION}}|$VERSION|g" \ -e "s|{{CONTAINER_TOOL}}|$CONTAINER_TOOL|g" \ -e "s|{{SAVE_PATH}}|$QBT_SAVE_PATH|g" \ - start.sh + ./start.sh sed -i '' \ -e "s|{{CONTAINER_TOOL}}|$CONTAINER_TOOL|g" \ - stop.sh + ./stop.sh else sed -i \ -e "s|{{VERSION}}|$VERSION|g" \ -e "s|{{CONTAINER_TOOL}}|$CONTAINER_TOOL|g" \ -e "s|{{SAVE_PATH}}|$QBT_SAVE_PATH|g" \ - start.sh + ./start.sh sed -i \ -e "s|{{CONTAINER_TOOL}}|$CONTAINER_TOOL|g" \ - stop.sh + ./stop.sh fi if [ ${#SKIPPED_INSTALLATIONS[@]} -gt 0 ]; then