Skip to content

Commit

Permalink
Fix installer to strip @ when copying to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozinn committed Feb 10, 2024
1 parent 0aaf7b9 commit 8c7866d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ do
export service
sudo -E bash -c "sed 's@USER@$user@;s@HOME@$home@' $service.service > $SYSTEM/$service.service"
[[ -f $service.timer ]] && sudo cp $service.timer $SYSTEM
[[ -f $service.py ]] && sudo cp src/$service.py $BIN
service=${service//@/} # Strip trailing @ from filename
[[ -f src/$service.py ]] && sudo cp src/$service.py $BIN
done

sudo cp nasabot.logrotate $LOGDIR/nasabot
Expand Down

0 comments on commit 8c7866d

Please sign in to comment.