Skip to content

Commit

Permalink
trying to fix user issues
Browse files Browse the repository at this point in the history
  • Loading branch information
roojs committed Dec 24, 2010
1 parent cdafcba commit 6ff9d79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git-ftp
Expand Up @@ -222,18 +222,18 @@ upload_file() {
echo "LINKS NOT SUPPORTED?"
elif [ -d $SRC_FILE ]; then
print_info "curl $REMOTE_CMD_OPTIONS $USERPASS -Q '-mkd ${REMOTE_PATH}${DEST_FILE}' $REMOTE_PROTOCOL://$REMOTE_HOST"
`curl $REMOTE_CMD_OPTIONS $USERPASS -Q '-mkd ${REMOTE_PATH}${DEST_FILE}' $REMOTE_PROTOCOL://$REMOTE_HOST > /dev/null 2>&1`
curl $REMOTE_CMD_OPTIONS $USERPASS -Q "-mkd ${REMOTE_PATH}${DEST_FILE}" $REMOTE_PROTOCOL://$REMOTE_HOST > /dev/null 2>&1
else
print_info "curl $REMOTE_CMD_OPTIONS $USERPASS -T '$SRC_FILE' --ftp-create-dirs -# $REMOTE_PROTOCOL://$REMOTE_HOST/${REMOTE_PATH}${DEST_FILE}"
`curl $REMOTE_CMD_OPTIONS $USERPASS -T '$SRC_FILE' --ftp-create-dirs -# $REMOTE_PROTOCOL://$REMOTE_HOST/${REMOTE_PATH}${DEST_FILE}`
curl $REMOTE_CMD_OPTIONS $USERPASS -T "$SRC_FILE" --ftp-create-dirs -# $REMOTE_PROTOCOL://$REMOTE_HOST/${REMOTE_PATH}${DEST_FILE}
fi
print_info "Uploaded"




}

#not used
batch_upload_files() {
FILES_COMMA_SEPARATED="$1"
echo $1;
Expand All @@ -248,7 +248,7 @@ batch_upload_files() {

remove_file() {
FILENAME="$1"
USERPASS="--user $REMOTE_USER:$REMOTE_PASSWD"
USERPASS="-u $REMOTE_USER:$REMOTE_PASSWD"
if [ "$REMOTE_USER" = "" ]; then
USERPASS="-n"
fi
Expand All @@ -257,7 +257,7 @@ remove_file() {

get_file_content() {
SRC_FILE="$1"
USERPASS="--user $REMOTE_USER:$REMOTE_PASSWD"
USERPASS="-u $REMOTE_USER:$REMOTE_PASSWD"
if [ "$REMOTE_USER" = "" ]; then
USERPASS="-n"
fi
Expand Down

0 comments on commit 6ff9d79

Please sign in to comment.