Skip to content

Commit

Permalink
update readme, remove tmp files in fastpath launcher (maybe move it s…
Browse files Browse the repository at this point in the history
…omewhere else?)
  • Loading branch information
Wazzaps committed Mar 26, 2022
1 parent aaae8ae commit 2e7abbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The easiest way is by running:
```shell
curl -fsSL https://github.com/Wazzaps/ampm/releases/latest/download/get_ampm.sh | sudo sh
```
But you can also download `ampm.tar.gz` and extract it to `/opt/ampm/`, and then run `install /opt/ampm/ampm.sh /usr/local/bin/ampm`
But you can also download `ampm.tar.gz`, extract it to `/opt/ampm/`,
then run `install /opt/ampm/ampm.sh /usr/local/bin/ampm`, and then put your repo uri in `/opt/ampm/repo_uri`.

## How to build manually:

Expand Down
5 changes: 4 additions & 1 deletion ampm/ampm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ elif [ "$#" -eq 2 ] && [ "$1" = "env" ] && echo "$2" | grep -P '^.*:[a-z0-9]{32}
cat "$(echo "$2" | sed -E 's|^(.*):([a-z0-9]{32})$|/var/ampm/metadata/\1/\2.env|')" 2>/dev/null || "/opt/ampm/ampm" "$@"
else
"/opt/ampm/ampm" "$@"
fi
fi

# Remove temporary files
rm /tmp/ampm_tmp_*

0 comments on commit 2e7abbf

Please sign in to comment.