Changeset 27 in code


Ignore:
Timestamp:
May 17, 2025, 2:44:25 PM (3 weeks ago)
Author:
yakumo.izuru
Message:

存在しないエントリを中止しま

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kanako

    r25 r27  
    77
    88_die() {
    9     printf "\033[1;31m%s\033[0m\n" "$*" >&2
     9    printf "\033[0;31m%s\033[0m\n" "$*" >&2
    1010    exit 1
    1111}
    1212_info() {
    13     printf "\033[1;32m%s\033[0m\n" "$*"
     13    printf "\033[0;32m%s\033[0m\n" "$*"
    1414}
    1515_warn() {
    16     printf "\033[1;33m%s\033[0m\n" "$*"
     16    printf "\033[0;33m%s\033[0m\n" "$*"
    1717}
    1818
     
    9292        ${kanako_encrypt_cmd} ${kanako_decrypt_args} "${1%%.enc}".enc
    9393    else
    94         usage
     94        _die "${1%%.enc} was not found"
    9595    fi
    9696}
Note: See TracChangeset for help on using the changeset viewer.