From 574ca986cbcd6033ea8ebdc9df40113023738477 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Fri, 28 Aug 2015 22:41:27 +0300 Subject: [PATCH] Update OS.lua --- MineOS/OS.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/MineOS/OS.lua b/MineOS/OS.lua index cb224cf2..e62a61e8 100644 --- a/MineOS/OS.lua +++ b/MineOS/OS.lua @@ -542,14 +542,13 @@ local function launchIcon(path, arguments) --Если это ссылка на пастебин elseif fileFormat == ".paste" then local shortcutLink = readShortcut(path) - ecs.prepareToExit() - local success, reason = shell.execute("pastebin run "..shortcutLink) - ecs.prepareToExit() - if success then - print(lang.programSuccessfullyExecuted) - else - ecs.displayCompileMessage(1, reason, true) - end + ecs.prepareToExit() + local success, reason = shell.execute("pastebin run " .. shortcutLink) + ecs.prepareToExit() + if success then + print(lang.programSuccessfullyExecuted) + else + ecs.displayCompileMessage(1, reason, true) end end