Skip to content

Commit

Permalink
Merge pull request #225 from Mte90/installer-fix
Browse files Browse the repository at this point in the history
feat(install): improved symbolic link
  • Loading branch information
Ph0enixKM committed Jun 27, 2024
2 parents 88749b0 + bfd72bf commit 7825202
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions setup/install.ab
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ main(args) {
exit(1)
}

// Remove the archive
// Delete the archive
${sudo} rm {place}/{archive}$ failed {
echo "Failed to remove downloaded archive at {place}/{archive}"
exit(1)
Expand All @@ -112,10 +112,19 @@ main(args) {
exit(1)
}

// Delete the previous symbolic link
if file_exist("{bins_folder}/{target}") {
${sudo} rm "{bins_folder}/{target}" failed {
echo "Failed to remove the previous amber symbol link."
echo "Please make sure that root user can access {bins_folder} directory."
exit(1)
}
}

// Create amber symbol link
${sudo} ln -s "{place}/{target}" "{bins_folder}/{target}"$ failed {
echo "Failed to create amber symbol link."
echo "Please make sure that root user can access /usr/local/bin directory."
echo "Please make sure that root user can access {bins_folder} directory."
exit(1)
}

Expand Down

0 comments on commit 7825202

Please sign in to comment.