Last active
March 21, 2026 12:06
-
-
Save luisadha/702967e776e0efb8385ab31adda78715 to your computer and use it in GitHub Desktop.
Supported Library for Drawercli-Aurora with CRUD Implementations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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__ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CRUD Implementations fix