mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
unescape $INSTALL_DIRECTORY in message to user
This commit is contained in:
parent
49accd8dbe
commit
fdc6e53f6e
@ -130,8 +130,8 @@ wasmer_detect_profile() {
|
|||||||
wasmer_link() {
|
wasmer_link() {
|
||||||
printf "$cyan> Adding to bash profile...$reset\n"
|
printf "$cyan> Adding to bash profile...$reset\n"
|
||||||
WASMER_PROFILE="$(wasmer_detect_profile)"
|
WASMER_PROFILE="$(wasmer_detect_profile)"
|
||||||
LOAD_STR="\n# Wasmer\nexport WASMER_DIR=\"\$INSTALL_DIRECTORY\"\n[ -s \"\$WASMER_DIR/wasmer.sh\" ] && source \"\$WASMER_DIR/wasmer.sh\" # This loads wasmer\n"
|
LOAD_STR="\n# Wasmer\nexport WASMER_DIR=\"$INSTALL_DIRECTORY\"\n[ -s \"\$WASMER_DIR/wasmer.sh\" ] && source \"\$WASMER_DIR/wasmer.sh\" # This loads wasmer\n"
|
||||||
SOURCE_STR="# Wasmer config\nexport WASMER_DIR=\"\$INSTALL_DIRECTORY\"\nexport WASMER_CACHE_DIR=\"\$WASMER_DIR/cache\"\nexport PATH=\"\$WASMER_DIR/bin:\$WASMER_DIR/globals/wapm_packages/.bin:\$PATH\"\n"
|
SOURCE_STR="# Wasmer config\nexport WASMER_DIR=\"$INSTALL_DIRECTORY\"\nexport WASMER_CACHE_DIR=\"\$WASMER_DIR/cache\"\nexport PATH=\"\$WASMER_DIR/bin:\$WASMER_DIR/globals/wapm_packages/.bin:\$PATH\"\n"
|
||||||
|
|
||||||
# We create the wasmer.sh file
|
# We create the wasmer.sh file
|
||||||
printf "$SOURCE_STR" > "$INSTALL_DIRECTORY/wasmer.sh"
|
printf "$SOURCE_STR" > "$INSTALL_DIRECTORY/wasmer.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user