Skip to content

Commit 7b0cae7

Browse files
committed
carriage return removal
1 parent d9d0b5c commit 7b0cae7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/aiscatcher-install

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,21 +272,17 @@ setup_systemd_service() {
272272
[Unit]
273273
Description=AIS-catcher Service
274274
After=network.target
275-
276275
[Service]
277-
ExecStart=/bin/bash -c '/usr/bin/AIS-catcher -G system on -o 0 -C ${CONFIG_FILE} \$(/bin/grep -v "^#" ${CMD_FILE} | /bin/grep -v "^[[:space:]]*$" | /usr/bin/tr "\n" " ")'
276+
ExecStart=/bin/bash -c '/usr/bin/AIS-catcher -G system on -o 0 -C ${CONFIG_FILE} \$(/bin/grep -v "^#" ${CMD_FILE} | /bin/grep -v "^[[:space:]]*$" | tr -d "\r" | /usr/bin/tr "\n" " ")'
278277
Restart=always
279278
RestartSec=10
280279
StartLimitBurst=0
281-
282280
[Install]
283281
WantedBy=multi-user.target
284282
EOF
285-
286283
systemctl daemon-reload || error_exit "Failed to reload systemd"
287284
}
288285

289-
290286
install_from_package() {
291287
local package=$1
292288
local download_url="https://github.com/jvde-github/AIS-catcher/releases/download/Edge/$package"

0 commit comments

Comments
 (0)