diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-25 15:54:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-25 15:55:28 +0100 |
commit | f5418f40cc0bda2aab8e16660f97474857ae3747 (patch) | |
tree | f9a4bdcf33053bdfb60db4ce773c16a37ac3012c /Ports/bash | |
parent | 202055a72a9fa80cdf9fd1fdc3a8a7cadecc3602 (diff) | |
download | serenity-f5418f40cc0bda2aab8e16660f97474857ae3747.zip |
Ports/bash: Make a /bin/bash symlink to /usr/local/bin/bash
I've added a post_install step to the system that allows you to run
arbitrary commands after the regular install step.
This allows scripts that start with "#!/bin/bash" to work in Serenity.
Diffstat (limited to 'Ports/bash')
-rwxr-xr-x | Ports/bash/package.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ports/bash/package.sh b/Ports/bash/package.sh index 019c34a5d7..a25d74c5ad 100755 --- a/Ports/bash/package.sh +++ b/Ports/bash/package.sh @@ -14,3 +14,8 @@ build() { run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h run make $makeopts } + +post_install() { + mkdir -p $SERENITY_ROOT/Root/bin + ln -s /usr/local/bin/bash $SERENITY_ROOT/Root/bin/bash +} |