Skip to content
Snippets Groups Projects
Commit 5279962a authored by efer's avatar efer
Browse files

fix noisy launchctl

parent 9e6ddf3b
No related branches found
No related tags found
No related merge requests found
...@@ -316,8 +316,8 @@ if [ $HOST_OS = 'Darwin' ]; then ...@@ -316,8 +316,8 @@ if [ $HOST_OS = 'Darwin' ]; then
mv $H/Library/$SCRIPTNAME-$RUSER $FILE_DIR/old/filter mv $H/Library/$SCRIPTNAME-$RUSER $FILE_DIR/old/filter
fi fi
if [ -f $UNIT_DIR/com.dtucompute.backup.plist ]; then if [ -f $UNIT_DIR/com.dtucompute.backup.plist ]; then
launchctl stop com.dtucompute.backup launchctl stop com.dtucompute.backup &&
launchctl unload $UNIT_DIR/com.dtucompute.backup.plist launchctl unload $UNIT_DIR/com.dtucompute.backup.plist &>/dev/null
mv $UNIT_DIR/com.dtucompute.backup.plist $FILE_DIR/old/ mv $UNIT_DIR/com.dtucompute.backup.plist $FILE_DIR/old/
fi fi
elif [ $HOST_OS = 'Linux' ]; then elif [ $HOST_OS = 'Linux' ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment