FG
💻 Software

zsh conditional statement help

Fresh5 days ago
Mar 15, 202624957 views
Confidence Score0%
0%

Problem

Feeling kinda dumb right now: Why is my contional always true? I've tried What am I missing?

Error Output

# this should let me know what's not a directory or 
# symbolic link.
whoa=`find ${MUSICDIR} ! -type l ! -type d | wc -l`

# I would expect if it's 0…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: zsh conditional statement help

Low Risk

turns out, i was missing the "then" after the if statement. should be

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment