summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-01-06 12:17:49 -0800
committerFuwn <[email protected]>2025-01-06 12:17:49 -0800
commit9a790114041382c00958657afd54ac89eb52e05c (patch)
treec1a6ce1725ba766dd1efaa22f8803610d0fc46c6 /scripts
parentnara: organise home programs (diff)
downloadnixos-config-9a790114041382c00958657afd54ac89eb52e05c.tar.xz
nixos-config-9a790114041382c00958657afd54ac89eb52e05c.zip
flake: format all files
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_clean_mas_apps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_clean_mas_apps.sh b/scripts/generate_clean_mas_apps.sh
index ee66d70..6bd50f6 100755
--- a/scripts/generate_clean_mas_apps.sh
+++ b/scripts/generate_clean_mas_apps.sh
@@ -9,7 +9,7 @@ echo "fetching installed apps from app store ..."
apps=$(mas list)
-if [[ -z "${apps}" ]]; then
+if [[ -z ${apps} ]]; then
echo "no apps installed from app store"
exit 0
fi
@@ -24,7 +24,7 @@ while IFS= read -r line; do
sed 's/[[:space:]]+$//' |
sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
- if [[ "${app_name}" =~ [[:space:]] ]]; then
+ if [[ ${app_name} =~ [[:space:]] ]]; then
output+=" \"${app_name}\" = ${app_id};\n"
else
output+=" ${app_name} = ${app_id};\n"