Skip to content

Commit

Permalink
fix: setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
k.mesniankin committed Nov 5, 2024
1 parent f4063c7 commit 59bd361
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -433,29 +433,29 @@ 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
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
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
Expand Down

0 comments on commit 59bd361

Please sign in to comment.