Skip to content

Instantly share code, notes, and snippets.

@luisadha
Last active March 21, 2026 12:06
Show Gist options
  • Select an option

  • Save luisadha/702967e776e0efb8385ab31adda78715 to your computer and use it in GitHub Desktop.

Select an option

Save luisadha/702967e776e0efb8385ab31adda78715 to your computer and use it in GitHub Desktop.
Supported Library for Drawercli-Aurora with CRUD Implementations
#!/data/data/com.termux/files/usr/bin/env -vS sh
self="annihilation"
altername="Apps Cleaner by Drawercli Aurora™"
shortcut_dir="$HOME/.shortcuts"
src="$shortcut_dir/.${self}"
dst="$shortcut_dir/${altername}"
phase=0
# --- C ---
__create__() {
printf 'bash --init-file %s/bin/%s\nread cont\n' "$PREFIX" "$self" > "$src"
}
# --- R ---
__read__() {
if [ "$phase" -eq 1 ] && [ -r "$dst" ]; then
printf 'Shortcut has been purged!\n'
else
:
fi
}
# --- U ---
__update__() {
[ -f "$src" ] && mv "$src" "$dst"
}
# --- D ---
__delete__() {
find "$shortcut_dir" \
-mindepth 1 -maxdepth 1 \
-type f \
! -name ".*" \
! -name "$altername" \
-exec rm -f {} +
}
# ===== mekanisme paralel =====
(
__create__
__read__
__update__
) & __delete__
wait
phase=1
__read__
@luisadha

Copy link
Copy Markdown
Author

CRUD Implementations fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment