Skip to content

Commit

Permalink
Merge pull request #1193 from Samueru-sama/main
Browse files Browse the repository at this point in the history
wrap long lines around
  • Loading branch information
ivan-hc authored Dec 9, 2024
2 parents 311fb14 + 8782917 commit a7a28b3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions modules/sandboxes.am
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,18 @@ _generate_sandbox_script() {
if [ "$1" = "--disable-sandbox" ]; then
APPIMAGEDIR="${APPEXEC%/*}"
echo ""
echo "✔ Giving exec permissions back to $APPEXEC..." | fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
echo "✔ Giving exec permissions back to $APPEXEC..." \
| fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
chmod a+x "$APPEXEC" || exit 1
echo "✔ Patching $APPIMAGEDIR/AM-updater to give permissions back..." | fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
echo "✔ Patching $APPIMAGEDIR/AM-updater to give permissions back..." \
| fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
sed -i 's|chmod a-x|chmod a+x|g' "$APPIMAGEDIR/AM-updater" || exit 1
THISFILE="$(realpath "$0")"
echo "✔ Replacing $THISFILE with a link to the AppImage..." | fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
echo "✔ Replacing $THISFILE with a link to the AppImage..." \
| fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
SUDO ln -sf "$APPEXEC" "$THISFILE" || exit 1
printf '\033[32m\n%s\n\033[0m\n' "✔ $APPEXEC successfully unsandboxed!" | fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
printf '\033[32m\n%s\n\033[0m\n' "✔ $APPEXEC successfully unsandboxed!" \
| fold -sw 77 | sed 's/^/ /g; s/ ✔/ ✔/g'
exit 0
fi
mkdir -p "$SANDBOXDIR/$APPNAME"
Expand Down

0 comments on commit a7a28b3

Please sign in to comment.