소스 검색

Use `$HOME` instead of `/home/$(whoami)`

In macOS home is `/Users/$(whoami)`
tags/v3.1
Abin Simon 6 년 전
committed by GitHub
부모
커밋
044ae667f6
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      mutt-wizard.sh

+ 1
- 1
mutt-wizard.sh 파일 보기

@@ -19,7 +19,7 @@ chooseSync() { (crontab -l && testSync) || dialog --msgbox "No cronjob manager d
testSync() { (crontab -l | grep .config/mutt/etc/mailsync && removeSync) || addSync ;}

addSync() { min=$(dialog --inputbox "How many minutes should be between mail syncs?" 8 60 3>&1 1>&2 2>&3 3>&-)
(crontab -l; echo "*/$min * * * * /home/$(whoami)/.config/mutt/etc/mailsync.sh") | crontab - &&
(crontab -l; echo "*/$min * * * * $HOME/.config/mutt/etc/mailsync.sh") | crontab - &&
dialog --msgbox "Cronjob successfully added. Remember you may need to restart or tell systemd/etc. to start your cron manager for this to take effect." 7 60 ;}

removeSync() { ((crontab -l | sed -e '/.config\/mutt\/etc\/mailsync/d') | crontab - >/dev/null) && dialog --msgbox "Cronjob successfully removed. To reactivate, select this option again." 6 60 ;}


불러오는 중...
취소
저장