Unverified Commit 1b1672bc authored by Josh Heinrichs's avatar Josh Heinrichs
Browse files

iterm2: fix passing args on the cli

If I try to run iterm2 on the cli, I get prompted to approve running
"installerPhase". We appear to be accidentally baking this into the
wrapper script rather than "$@" due to improper escaping.
parent 8cc0451e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ stdenvNoCC.mkDerivation rec {
    mkdir -p "$out/bin"
    cat << EOF > "$out/bin/iterm2"
    #!${stdenvNoCC.shell}
    open -na "$APP_DIR" --args "$@"
    open -na "$APP_DIR" --args "\$@"
    EOF
    chmod +x "$out/bin/iterm2"
    runHook postInstall