Skip to content

Commit

Permalink
actions: Fix using custom gsync command | Avoid some log
Browse files Browse the repository at this point in the history
  • Loading branch information
Akianonymus committed Jul 18, 2022
1 parent d5c0559 commit 87ba0c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
set -e
sh install.sh
PATH="${HOME}/.google-drive-upload/bin:${PATH}"
gupload --info && gsync --help
gupload --info && gsync --help | head -n 10
sh install.sh -U && sh install.sh --posix -B master
gupload --info && gsync --help
sh install.sh -U && sh install.sh -c custom_gupload sync="custom_gsync"
custom_gupload --info && custom_gsync --help
gupload --info && gsync --help | head -n 10
sh install.sh -U && sh install.sh -c custom_gupload -sc custom_gsync
custom_gupload --info && custom_gsync --help | head -n 10
- name: 'Format and merge test'
run: |
set -e
Expand Down
6 changes: 5 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ All flags are optional.\n
Options:\n
-p | --path <dir_name> - Custom path where you want to install script.\nDefault Path: ${HOME}/.google-drive-upload. \n
-c | --cmd <command_name> - Custom command name, after installation script will be available as the input argument.
To change sync command name, use %s -c gupload sync='gsync'
Default upload command: gupload
-sc | --sync-cmd <command name> - Custom command name for gsync.
Default sync command: gsync\n
-r | --repo <Username/reponame> - Upload script from your custom repo,e.g --repo labbots/google-drive-upload, make sure your repo file structure is same as official repo.\n
-R | --release <tag/release_tag> - Specify tag name for the github repo, applies to custom and default repo both.\n
Expand Down Expand Up @@ -516,6 +516,10 @@ _setup_arguments() {
_check_longoptions "${1}" "${2}"
COMMAND_NAME="${2}" && shift
;;
-sc | --sync-cmd)
_check_longoptions "${1}" "${2}"
SYNC_COMMAND_NAME="${2}" && shift
;;
-b | -B | --branch)
_check_longoptions "${1}" "${2}"
TYPE_VALUE="${2}" && shift
Expand Down

0 comments on commit 87ba0c3

Please sign in to comment.