Skip to content

Commit

Permalink
Apparently exec will set the error code if it fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 25, 2008
1 parent e4c5798 commit 809cf61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/mojosetup_mainline.lua
Expand Up @@ -934,8 +934,7 @@ local function install_unix_uninstaller(desc, key)

local script =
"#!/bin/sh\n" ..
"exec " .. bin .. " uninstall '" .. id .. "' $*\n" ..
"exit 1\n\n"
"exec " .. bin .. " uninstall '" .. id .. "' $*\n\n"

install_parent_dirs(fname, key)
install_file_from_string(fname, script, "0755", desc, key)
Expand Down

0 comments on commit 809cf61

Please sign in to comment.