aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtmp.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tmp.py b/tmp.py
index 9db6142..0691ea0 100755
--- a/tmp.py
+++ b/tmp.py
@@ -66,7 +66,9 @@ URLS['tmp']=URLS_tmp[@]
CMDNAME="$(echo "$(basename $0)"|sed 's/./\L&/g')"
declare -A config
-for elem in "${!URLS[$CMDNAME]}"
+echo ${@:1}
+
+for elem in ${URLS[$CMDNAME]}
do
# echo "key : ${elem}" -- "value: ${config[${elem}]}"
config[${elem}]=${URLS[$CMDNAME][${elem}]}
@@ -75,12 +77,13 @@ done
echo ${config[@]}
echo ${!config[@]}
-
exit 0
[ $# -lt 1 ] && exit 1
-for processed_file in sys.argv[1:] ; do
+
+
+for processed_file in ${@:1} sys.argv[1:] ; do
st=os.stat(processed_file).st_size
file_ext=os.path.splitext(processed_file)[1]
debug "size of $processed_file is ${st}"