Skip to content

Commit

Permalink
Update postData.sh: remove unused arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Sep 20, 2023
1 parent 66d9d03 commit b1acb6a
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions scripts/postData.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ usage_and_exit()
RET=${1}
echo
[[ ${RET} -ne 0 ]] && echo -en "${RED}"
echo "Usage: ${ME} [--help] [--settingsOnly] \\"
echo " [--local-web] [--remote-web] [--remote-server] [--allfiles]"
echo "Usage: ${ME} [--help] [--settingsOnly] [--allfiles]"
[[ ${RET} -ne 0 ]] && echo -en "${NC}"
echo " where:"
echo " '--allfiles' causes all 'view settings' files to be uploaded"
Expand All @@ -29,9 +28,6 @@ usage_and_exit()

HELP="false"
SETTINGS_ONLY="false"
LOCAL_WEB="false"
REMOTE_WEB="false"
REMOTE_SERVER="false"
ALL_FILES="false"
RET=0
while [[ $# -gt 0 ]]; do
Expand All @@ -41,15 +37,6 @@ while [[ $# -gt 0 ]]; do
HELP="true"
shift
;;
--local-web)
LOCAL_WEB="true"
;;
--remote-web)
REMOTE_WEB="true"
;;
--remote-server)
REMOTE_SERVER="true"
;;
--allfiles)
ALL_FILES="true"
shift
Expand All @@ -71,12 +58,6 @@ done
[[ ${RET} -ne 0 ]] && usage_and_exit ${RET}
[[ ${HELP} = "true" ]] && usage_and_exit 0

if [[ ${LOCAL_WEB} == "false" && ${REMOTE_WEB} == "false" && ${REMOTE_SERVER} == "false" ]]; then
LOCAL_WEB="true"
REMOTE_WEB="true"
REMOTE_SERVER="true"
fi

if [[ ${SETTINGS_ONLY} == "false" ]]; then
OK="true"
if ! latitude="$( convertLatLong "$( settings ".latitude" )" "latitude" )" ; then
Expand Down

0 comments on commit b1acb6a

Please sign in to comment.