mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
update aniwrapper sync to pass verbose option
This commit is contained in:
parent
ee507bd220
commit
78b8dbb3eb
20
aniwrapper
20
aniwrapper
@ -61,14 +61,14 @@ log() {
|
|||||||
selection=$(printf "%s\n" "$choice" | awk '{ print $1 }')
|
selection=$(printf "%s\n" "$choice" | awk '{ print $1 }')
|
||||||
|
|
||||||
case "$selection" in
|
case "$selection" in
|
||||||
1.)
|
1.)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# streaming
|
# streaming
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
log "Streaming mode"
|
log "Streaming mode"
|
||||||
run
|
run
|
||||||
;;
|
;;
|
||||||
2.)
|
2.)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# download
|
# download
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@ -79,7 +79,7 @@ case "$selection" in
|
|||||||
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT_DOWNLOAD"
|
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT_DOWNLOAD"
|
||||||
run -d "$dl_dir"
|
run -d "$dl_dir"
|
||||||
;;
|
;;
|
||||||
3.)
|
3.)
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# continue
|
# continue
|
||||||
@ -87,7 +87,7 @@ case "$selection" in
|
|||||||
log "Continue watching"
|
log "Continue watching"
|
||||||
run -H
|
run -H
|
||||||
;;
|
;;
|
||||||
4.)
|
4.)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# playlist mode
|
# playlist mode
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@ -202,7 +202,7 @@ case "$selection" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
5.)
|
5.)
|
||||||
log "Sync history database"
|
log "Sync history database"
|
||||||
username=$(rofi -dmenu -config "$CFG_DIR/$CFG_FILE" \
|
username=$(rofi -dmenu -config "$CFG_DIR/$CFG_FILE" \
|
||||||
-l 1 -p "Enter the username of the remote user:")
|
-l 1 -p "Enter the username of the remote user:")
|
||||||
@ -225,9 +225,11 @@ case "$selection" in
|
|||||||
-l 1 -p "Enter path to private key (leave blank if not needed or if unsure):")
|
-l 1 -p "Enter path to private key (leave blank if not needed or if unsure):")
|
||||||
|
|
||||||
if [[ -z "$keypath" ]]; then
|
if [[ -z "$keypath" ]]; then
|
||||||
printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "" | ani-cli -s
|
printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "" | run -s
|
||||||
|
# printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "" | ani-cli -s
|
||||||
else
|
else
|
||||||
printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "$keypath" | ani-cli -s
|
# printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "$keypath" | ani-cli -s
|
||||||
|
printf "%s\n%s\n%d\n%s\n" "$username" "$host" "$port" "$keypath" | run -s
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$?" -ne 0 ]]; then
|
if [[ "$?" -ne 0 ]]; then
|
||||||
@ -238,14 +240,14 @@ case "$selection" in
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
6.)
|
6.)
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# get out
|
# get out
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
printf "%s\n" "Quitting..."
|
printf "%s\n" "Quitting..."
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
log "Invalid choice..."
|
log "Invalid choice..."
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user