changed grep to diff for .service files

pull/111/head
alanbjohnston 5 years ago committed by GitHub
parent b658e58534
commit b6627101bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ make debug
FLAG=0
if [[ $(grep 'cubesatsim.service' /home/pi/CubeSatSim/.updated) ]]; then
if [[ $(diff systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service) ]]; then
echo "copying cubesatsim.service"
sudo cp systemd/cubesatsim.service /etc/systemd/system/cubesatsim.service
FLAG=1
@ -26,7 +26,7 @@ else
echo "no changes to cubesatsim.service"
fi
if [[ $(grep 'rpitx.service' /home/pi/CubeSatSim/.updated) ]]; then
if [[ $(diff systemd/rpitx.service /etc/systemd/system/rpitx.service) ]]; then
echo "copying rpitx.service"
sudo cp systemd/rpitx.service /etc/systemd/system/rpitx.service
FLAG=1

Loading…
Cancel
Save

Powered by TurnKey Linux.