diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-11-20 00:54:14 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-11-20 00:54:14 -0800 |
commit | 7d405e2b2b49da168c65657e2a4d660e7279af31 (patch) | |
tree | 3d1f4e886e85b9d8f3e080c12531c685061494c5 /home/xyz/.local | |
parent | f78367d93b516861878dbc8387510a1dbad19b67 (diff) |
update
Diffstat (limited to 'home/xyz/.local')
-rwxr-xr-x | home/xyz/.local/bin/upd | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index e9bc3089..b4147d14 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -7,7 +7,6 @@ all () { refl music usb - xmr backup } @@ -110,12 +109,6 @@ usb () { rsync -avPRr --delete --files-from="$XDG_CONFIG_HOME/myconf/upd_rsync_files" / /run/media/xyz/bd0 } -xmr () { - # use cd to workaround monero-blockchain-export.log log file save in current dir? issue, haven't tested - cd "$HOME/.bitmonero" || exit - monero-blockchain-export --output-file "$XDG_DOWNLOAD_DIR/xmr/monero_blockchain.raw" -} - music () { yt-dlp -f 'bestaudio[ext=opus]/bestaudio' --match-filter 'license=cc-by' --match-filter 'title~=(?i)cc-by' -P "$XDG_MUSIC_DIR/cc-by/scott_buckley" https://soundcloud.com/scottbuckley/tracks } @@ -123,7 +116,7 @@ music () { if [ $# -eq 0 ]; then fast else - while getopts abcfjmMprux opt; do + while getopts abcfjmMpru opt; do case $opt in a)all;; b)backup;; @@ -135,7 +128,6 @@ else p)pac;; r)refl;; u)usb;; - x)xmr;; \?)exit 1;; esac done |