Skip to content

Commit

Permalink
fix(installer): fixes bug with the installer that prevents it from ru…
Browse files Browse the repository at this point in the history
…nning successfully
  • Loading branch information
Ph0enixKM committed Jul 17, 2024
1 parent d9f05fe commit e09889a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup/install.ab
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo ""

fun get_latest_release_tag() {
let tag_url = "https://api.github.com/repos/Ph0enixKM/{name}/releases/latest"
let tag_json = silent $curl -L "{tag_url}"$?
let tag_json = $curl -sL "{tag_url}"$?
// Get the tag name from the JSON
let tag = $echo "\${nameof tag_json}" \
| grep -Eo "tag_name\\"[^\\"]*\\"([^\\"]+)\\"" \
Expand Down
6 changes: 3 additions & 3 deletions setup/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Written in [Amber](https://amber-lang.com/)
# version: 0.3.4-alpha
# date: 2024-07-17 15:53:50
# date: 2024-07-17 16:35:15
function file_exist__1_v0 {
local path=$1
[ -f "${path}" ];
Expand Down Expand Up @@ -166,14 +166,14 @@ __3_agent=$(if [ $__AF_has_failed28_v0__10_13 != 0 ]; then echo "unknown"; else
echo ""
function get_latest_release_tag__68_v0 {
local tag_url="https://api.github.com/repos/Ph0enixKM/${__0_name}/releases/latest"
__AMBER_VAL_4=$(curl -L "${tag_url}" > /dev/null 2>&1);
__AMBER_VAL_4=$(curl -sL "${tag_url}");
__AS=$?;
if [ $__AS != 0 ]; then
__AF_get_latest_release_tag68_v0=''
return $__AS
fi;
local tag_json="${__AMBER_VAL_4}"
__AMBER_VAL_5=$(echo "$tag_json" | grep -Eo "tag_name\\"[^\\"]*\\"([^\\"]+)\\"" | grep -Eo "\\"[^\\"]+\\"$" | grep -Eo "[^\\"\\s]+");
__AMBER_VAL_5=$(echo "$tag_json" | grep -Eo "tag_name\"[^\"]*\"([^\"]+)\"" | grep -Eo "\"[^\"]+\"$" | grep -Eo "[^\"\s]+");
__AS=$?;
if [ $__AS != 0 ]; then
__AF_get_latest_release_tag68_v0=''
Expand Down
4 changes: 3 additions & 1 deletion src/modules/expression/literal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ fn translate_escaped_string(string: String, is_str: bool) -> String {
chars.next();
},
Some('\\') => {
result.push('\\');
if is_str {
result.push('\\');
}
result.push('\\');
chars.next();
},
Expand Down

0 comments on commit e09889a

Please sign in to comment.