Skip to content

Commit 16de4b2

Browse files
committed
fix linter problems
1 parent 2c025b2 commit 16de4b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

share/github-backup-utils/ghe-backup-mssql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export_tool_available() {
3030
}
3131

3232
ghe_ssh_mssql() {
33-
ghe-ssh $opts $ssh_config_file_opt "$GHE_MSSQL_PRIMARY_HOST" "$@"
33+
ghe-ssh "$opts" "$ssh_config_file_opt" "$GHE_MSSQL_PRIMARY_HOST" "$@"
3434
}
3535

3636
cleanup() {
37-
rm -rf $tempdir
37+
rm -rf "$tempdir"
3838
}
3939
trap 'cleanup' EXIT INT
4040

@@ -69,10 +69,10 @@ add_minute() {
6969
# Expect date string in the format of yyyymmddTHHMMSS
7070
# Here parse date differently depending on GNU Linux vs BSD MacOS
7171
if date -v -1d > /dev/null 2>&1; then
72-
echo "$(date -v +$2M -ujf'%Y%m%dT%H%M%S' $1 +%Y%m%dT%H%M%S)"
72+
date -v +"$2"M -ujf'%Y%m%dT%H%M%S' "$1" +%Y%m%dT%H%M%S
7373
else
7474
dt=$1
75-
echo "$(date -u '+%Y%m%dT%H%M%S' -d "${dt:0:8} ${dt:9:2}:${dt:11:2}:${dt:13:2} $2 minutes")"
75+
date -u '+%Y%m%dT%H%M%S' -d "${dt:0:8} ${dt:9:2}:${dt:11:2}:${dt:13:2} $2 minutes"
7676
fi
7777
}
7878

0 commit comments

Comments
 (0)