From c8ec6743b66efecde65a18ae283b72942faca5c4 Mon Sep 17 00:00:00 2001 From: zenobit Date: Mon, 27 Mar 2023 06:22:45 +0200 Subject: [PATCH] delete old --- check.sh | 19 ------------------- sort_functions.sh | 17 ----------------- 2 files changed, 36 deletions(-) delete mode 100755 check.sh delete mode 100755 sort_functions.sh diff --git a/check.sh b/check.sh deleted file mode 100755 index c5a2d41..0000000 --- a/check.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# DEBUG mod -#bash -x quickyad 2>&1 | tee output.log - -# YAD gui script for excellent quickemu -#TODO Download Icons -#TODO Add homepages to right click - -echo "Running..." -# dependencies checks -if ! command -v yad >/dev/null 2>&1; then - echo "You are missing yad..." >&2 - exit 1 -fi -if ! command -v quickemu >/dev/null 2>&1; then - echo "You are missing quickemu..." >&2 - exit 1 -fi diff --git a/sort_functions.sh b/sort_functions.sh deleted file mode 100755 index 51c9771..0000000 --- a/sort_functions.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# Get the name of the script from the command line argument -script_name=$1 - -# Get a list of all the function names in the script -function_names=$(grep -oP '^[[:space:]]*function \K\w+' "$script_name") - -# Sort the function names alphabetically -sorted_function_names=$(echo "$function_names" | sort) - -# Loop through the sorted function names and print the function definitions -for function_name in $sorted_function_names -do -# Print the function definition to stdout -grep -A $(wc -l < "$script_name") -w "function $function_name" "$script_name" -done