File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,8 @@ Options:
5656"
5757}
5858
59- if [ -z $USERNAME ]; then
60- echo -e " [!!!] Please specify a LDAP user!\n"
61- _help_message
62- exit 1
63- fi
64-
65- if [ -z $BRANCH ]; then
66- echo -e " [!!!] Please specify a branch!\n"
59+ if [[ -z $USERNAME || -z $BRANCH ]]; then
60+ echo -e " [!!!] Please specify a LDAP user and specify a branch!\n"
6761 _help_message
6862 exit 1
6963fi
@@ -76,7 +70,7 @@ ssh ${ARGS_SSH} ${USERNAME}@repo.aosc.io "mkdir -p /mirror/debs/pool/${BRANCH}/$
7670
7771for i in debs/* /* ; do
7872 if [ $i = " *_noarch.deb" ]; then
79- rsync ${ARGS_RSYNC} -ignore-existing -rlOvhze ssh --progress $i ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT}
73+ rsync ${ARGS_RSYNC} -- ignore-existing -rlOvhze ssh --progress $i ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT}
8074 else
8175 rsync ${ARGS_RSYNC} -rlOvhze ssh --progress $i ${USERNAME} @repo.aosc.io:/mirror/debs/pool/${BRANCH} /${COMPOMENT}
8276 fi
You can’t perform that action at this time.
0 commit comments