Commits

Jack Frost committed b86cbe3

some enderman fixes

Comments (0)

Files changed (2)

 		digger.err "miner not found. You can get it at https://github.com/fbt/misc or https://bitbucket.org/fbt/scripts"
 		return 1
 	}
-	
+
+	echo "$enderman_path, $digger_dir/$minecraft_instance"
+	echo "bash \"$enderman_path\" -d \"$digger_dir/$minecraft_instance\" \"$1\""
+
 	bash "$enderman_path" -d "$digger_dir/$minecraft_instance" "$1"
 }
 
 cfg_zip_url="$1"
 # cfg_miner_path="$HOME/bin/miner"
 
-[[ -f "$cfg_rc_file" ]] && { source "$cfg_rc_file"; }
-
 [[ "$cfg_miner_path" ]] || {
 	cfg_miner_path=`which miner`
 
 	esac
 done
 
-[[ "$OPTIND" ]] && { shift $[OPTIND-1]; }
+[[ "$OPTIND" ]] && { shift $((OPTIND-1)); }
+
+cfg_zip_url="$1"
+
+[[ -f "$cfg_rc_file" ]] && { source "$cfg_rc_file"; }
 
 [[ "$cfg_mc_dir" ]] || { cfg_mc_dir="$HOME/.minecraft"; }