Fix i3 config file path check and error message

Updated the i3 config file installation path check and error message.
This commit is contained in:
JGH
2026-01-26 09:15:48 +00:00
committed by GitHub
parent 003f576f7a
commit 78a150fb35

View File

@@ -106,10 +106,10 @@ echo
echo "Installing i3 config → ~/.config/i3/config" echo "Installing i3 config → ~/.config/i3/config"
mkdir -p "$I3_DIR" mkdir -p "$I3_DIR"
if [ -f "$CFG_ROOT/i3/config/config" ]; then if [ -f "$CFG_ROOT/i3/config" ]; then
cp "$CFG_ROOT/i3/config/config" "$I3_DIR/config" cp "$CFG_ROOT/i3/config" "$I3_DIR/config"
else else
echo "Error: i3 config file not found in $CFG_ROOT/i3/config/" echo "Error: i3 config file not found in $CFG_ROOT/i3/"
exit 1 exit 1
fi fi
@@ -119,4 +119,4 @@ fi
echo echo
echo "✓ Done" echo "✓ Done"
echo echo
echo "Reload i3 with: Super + Shift + C" echo "Reload i3 with: Super + Shift + C"