summaryrefslogtreecommitdiff
path: root/archive/bin/fmr-sync-suspend
blob: ab8d67d76ea163d9222dc9edebe28f3ecb0f2597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# ^ different shells have different options for read()

. $HOME/.shenv

# Perform `fmr sync`, and then run sensible suspend if it succeeded

MR_FAST=true mr sync

if [ $? = 0 ]; then
    sensible-suspend
else
    read -rsp $'Press any key to continue...\n' -n1 key
fi