aboutsummarylogtreecommitdiffstats
path: root/up
diff options
context:
space:
mode:
Diffstat (limited to 'up')
-rwxr-xr-xup7
1 files changed, 4 insertions, 3 deletions
diff --git a/up b/up
index 75dfcaa109ed..8b53b6d5d99f 100755
--- a/up
+++ b/up
@@ -57,13 +57,13 @@ function upload(){
args="$file;$extension"
url=$(curl -s -F "$args" 'https://x0.at/')
- return $url
+ return "$url"
}
# Arguments
function arguments(){
- while getopts "hat:" arg "$@"
+ while getopts "hat:" arg "$args"
do
case $arg in
a)
@@ -162,4 +162,5 @@ function main(){
# Main
-main "$@"
+args="$@"
+main "$args"