Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Oct 9, 2024
1 parent 8375c61 commit 40e1f41
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package-lock.json
result
public/config.json
static/
x86_image_wizard/alpine/anurad.c
x86_image_wizard/apline/anura-run
x86_image_wizard/alpine/xfrog.sh
x86_image_wizard/alpine/xsetrandr.sh
x86_image_wizard/alpine/anuramouse
Expand Down
7 changes: 4 additions & 3 deletions apps/fsapp.app/operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function filePickerAction(selected) {
row.classList.remove("selected");
}
currentlySelected = [];
if (selected.length == 1) {
if (selected.length === 1) {
var fileSelected = selected[0];
if (fileSelected.getAttribute("data-type") === filePicker.type) {
let fileData = {
Expand Down Expand Up @@ -113,9 +113,10 @@ async function fileAction(selected) {
);
}
reload();
} else {
anura.files.open(fileSelected.getAttribute("data-path"));
return;
}

anura.files.open(fileSelected.getAttribute("data-path"));
} else if (fileSelected.getAttribute("data-type") === "dir") {
if (
fileSelected
Expand Down
2 changes: 1 addition & 1 deletion x86_image_wizard/alpine/anura-apk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ elif [ "$1" = "post-commit" ]; then
cp /boot/vmlinuz-virt /root/bzimage
cp /boot/initramfs-virt /root/initrd.img
echo Queuing virtual hda save...
echo -ne "anura.x86.virt_hda.save()\0" > /dev/hvc1
echo -ne "anura.x86.virt_hda.save();\0" > /dev/hvc1
fi
exit 0
1 change: 0 additions & 1 deletion x86_image_wizard/alpine/anura-boot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description="Run Anura Boot Scripts"

start() {
ebegin "Running Anura Boot Scripts"
modprobe ne2k-pci
ifupdown ifup eth0
ip link set lo up
eend $?
Expand Down
15 changes: 0 additions & 15 deletions x86_image_wizard/alpine/anura-run

This file was deleted.

1 change: 1 addition & 0 deletions x86_image_wizard/alpine/build-alpine-bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ sudo umount "$loop"
sudo losetup -d "$loop"
rm "$OUT_ROOTFS_TAR"
rm -rf "$OUT_ROOTFS_MNT"
rm anura-run
rm xfrog.sh
rm xsetrandr.sh
rm epoxy-server
Expand Down

0 comments on commit 40e1f41

Please sign in to comment.